> ## Documentation Index
> Fetch the complete documentation index at: https://usegately.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Current Subscription

> Get the current subscription for a user

Retrieve the active subscription for a user.

<ParamField header="X-User-ID" type="string" required>
  The user ID to get subscription for
</ParamField>

## Response

<ResponseField name="subscription" type="object">
  The active subscription object, or null if none
</ResponseField>

<RequestExample>
  ```bash theme={null}
  curl -X GET "https://api.usegately.com/api/v1/user-plans/current" \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "X-User-ID: user_123"
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "subscription": {
      "id": "sub_123",
      "plan_id": "plan_456",
      "plan_name": "Pro Plan",
      "status": "active",
      "current_period_start": "2024-01-01T00:00:00Z",
      "current_period_end": "2024-02-01T00:00:00Z",
      "cancel_at_period_end": false
    }
  }
  ```
</ResponseExample>
