# Get the bot of a subscription

`GET https://api.cryptohopper.com/v1/subscription/{subscription_id}/hopper`

Part of [Subscriptions](https://www.cryptohopper.com/api-documentation/api-reference/subscriptions.md) in the Cryptohopper API reference.

Returns the ID of the bot a subscription is assigned to. A subscription without a bot returns 404.

OAuth scope: `read`

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `access-token` | string | yes | The OAuth access token of the user. |

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `subscription_id` | string | yes | ID of the subscription. |

## Example request

```bash
curl "https://api.cryptohopper.com/v1/subscription/SUBSCRIPTION_ID/hopper" \
  -H "access-token: YOUR_ACCESS_TOKEN"
```

## Response

Example response (illustrative values):

```json
{
    "data": {
        "subscription_id": "466000",
        "hopper_id": "987654"
    }
}
```

Status codes: 200. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
