> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/mariadb-cloud/reference/mariadb-cloud-api-reference-guide/authentication.md).

# Authentication

To authenticate with the API, do the following:

1. Go to SkySQL API Key management page: <https://app.skysql.com/user-profile/api-keys> and generate an API key
2. Export the value from the token field to an environment variable $API\_KEY
3. Use it on subsequent request, e.g:

   ```
    curl --request GET 'https://api.skysql.com/provisioning/v1/services' --header "X-API-Key: $API_KEY"
   ```
