# API Key

{% hint style="info" %}
Do you need a key? Contact your sales rep or contact to request one to start developing.
{% endhint %}

### Key Types <a href="#key-types" id="key-types"></a>

#### Secret API Key <a href="#secret-api-key" id="secret-api-key"></a>

A secret API key is for the server side and should not be shared with the front end.

Example Key: `sec_23hcfb8374bfhc833i4uhx`

#### Public API Key <a href="#public-api-key" id="public-api-key"></a>

A public API key is used on your website to call the API. These keys are limited to your domain and are safe to share publicly.

Example Key: `pub_3ficuhb34u8fnxu34h9fm`

### Authenticating Requests <a href="#authenticating-requests" id="authenticating-requests"></a>

When making requests to the APIs, include the key in your request.

```
Authorization: ApiKey {your API key}
```

### Other Authentication Methods <a href="#authenticating-requests" id="authenticating-requests"></a>

We also support [OAuth](/uk-autograb-api-doc/authentication/oauth-authentication.md), you can read more about this authentication mechanism here.


---

# 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://devhub.autograb.com/uk-autograb-api-doc/authentication/api-key.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.
