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

# Authentication

> Learn how to authenticate your requests to the Cobalt API

# Authentication

You need a `client_id` and `client_secret` to interact with the Cobalt API. You will also need an `access_token` for each user which can be obtained in through the [Cobalt Link flow](/docs/link/overview).

## Headers

| Header          | Description                                                                |
| --------------- | -------------------------------------------------------------------------- |
| `client_id`     | Your Cobalt API client id                                                  |
| `client_secret` | Your Cobalt API secret                                                     |
| `access_token`  | The access token for the individual provider obtained during the Link flow |

### Example Request

```bash theme={null}
curl -X GET https://api.usecobalt.com/v1/appointments \
-H 'Content-Type: application/json' \
-H 'client_id: ci_live_198908HJDKJSH98789OHKJL' \
-H 'client_secret: cs_live_9827hofdsklOYYHJLJh' \
-H 'access_token: 493JKLHIU98789hLKH9HHJH'
```

## Access Tokens

Access tokens are obtained through the [Cobalt Link](/docs/link/overview) flow. Each access token is associated with a specific set of EHR credentials.
