# 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"
   ```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mariadb.com/docs/mariadb-cloud/reference/mariadb-cloud-api-reference-guide/authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
