---
title: "Authorizing Query API requests"
canonical: "https://docs.devo.com/space/latest/95128442/Authorizing%20Query%20API%20requests"
format: markdown
---
All Query API requests must employ one of the following authorization schemes to communicate successfully with Devo:  


> Macro (toc)

## API key & API secret

You can use a domain API key and API secret to sign the request. Devo Admin users can find these credentials in **Administration → Credentials**,** **in the** Access Keys **tab. Check the [Security credentials](https://devodocs.atlassian.net/wiki/spaces/latest/pages/94763701) article for more details. 

This method requires three parameters in the request header:

| **Parameter** | **Value** | **Description** |
| --- | --- | --- |
| `x-logtrust-apikey` | Domain API key | The API key of your Devo <span style="color: #000000">domain</span>. Go to **Administration → Credentials** to find your API key. |
| `x-logtrust-sign` | <span style="color: #3b4151">HMAC SHA-256</span><span style="color: #000000"> (API key + body message + </span>`x-logtrust-timestamp, `<span style="color: #000000">API secret)</span> | <span style="color: #3b4151">Signed body as a HMAC SHA-256 using the API secret to sign the concatenation of the API key + body message + timestamp encoded as an hexadecimal string. If the request has an empty body message, the sign will be the concatenation of the API key + timestamp</span><br>If the signature is not valid, the server will return a 401 Unauthorized HTTP Status error |
| `x-logtrust-timestamp` | Current timestamp in milliseconds | Timestamp expressed in milliseconds |

## OAuth token

You can generate a token in the **Administration → Credentials** area of Devo to authorize your request. This method needs one header parameter:

| **Parameter** | **Value** | **Description** |
| --- | --- | --- |
| `Authorization` | `Bearer <token>` | You can generate this token in Devo and use it to restrict query requests to a specific set of data tables. See [Security credentials](https://devodocs.atlassian.net/wiki/spaces/latest/pages/94763701) to learn how to create them. |