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

# Authentication

To test your API key, use this code:

```bash theme={null}
curl "https://api.immitranslate.com/v1/ping" \
  -H "Authorization: Bearer a1s2d3f4q5w6e7r8t9y0"
```

Make sure to replace `a1s2d3f4q5w6e7r8t9y0` with your API key.

The above command returns `200 OK` and JSON structured like this:

```json theme={null}
{
  "result": "success"
}
```

ImmiTranslate uses API keys to authenticate access to your own account. Once you have an account, head to the [API keys page](https://portal.immitranslate.com/settings/api-keys) to generate or view your API keys.

All calls to the API require authentication with an API key, or with an access token issued to an [OAuth app](/oauth-apps). Both are sent the same way.

`Authorization: Bearer a1s2d3f4q5w6e7r8t9y0`

<Note>
  You must replace `a1s2d3f4q5w6e7r8t9y0` with your own API key. The API keys should be treated as secrets and not shared or checked into source code repositories.
</Note>


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