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

# Public API-KEY

> [!NOTE]
>
> An `X-Api-Key` is required to authenticate requests to all other public endpoints.
> This endpoint does not need a key. It returns a hint (the last 4 characters) of the agency's active key so you can check which key is in use.

> [card] Method
>
> `GET`

> [card] Endpoint
>
> `/keys/hint/`

```bash Request theme={null}
  curl --request GET \
    --url 'https://api.growthchannel.io/keys/hint/?agency_id=544'
```

## Parameters

**agency\_id** `integer` *required*

The unique identifier for the agency `?agency_id=544`

## Responses

> [tab] 200 OK
>
> ```json theme={null}
> {
>   "key_hint": "aY5Q"
> }
> ```
>
> **key\_hint** `string`
>
> The last 4 characters of the agency's active API key.

> [tab] 400 Bad Request
>
> Returned if `agency_id` is missing.
>
> ```json theme={null}
> {
>   "error": {
>     "code": "VALIDATION_ERROR",
>     "message": "agency_id is required",
>     "details": {
>       "field": "agency_id",
>       "issue": "missing"
>     },
>     "request_id": "..."
>   }
> }
> ```

> [tab] 404 Not Found
>
> Returned if the agency does not exist.
>
> ```json theme={null}
> {
>   "error": {
>     "code": "NOT_FOUND",
>     "message": "Agency not found",
>     "details": {
>       "field": "agency_id",
>       "value": "544"
>     },
>     "request_id": "4b7bd3b3-21fa-47ae-8369-78e658408a51"
>   }
> }
> ```
>
> Returned if the agency has no active API key.
>
> ```json theme={null}
> {
>   "error": {
>     "code": "NOT_FOUND",
>     "message": "No active API key found for this agency",
>     "details": {
>       "field": "agency_id",
>       "value": "544"
>     },
>     "request_id": "..."
>   }
> }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.