Authenticate with the REST API
How to authenticate REST API requests with an API key via a bearer header, request body, or query parameter.
Last updated
Was this helpful?
How to authenticate REST API requests with an API key via a bearer header, request body, or query parameter.
Most Roboflow API endpoints require an API key or OAuth access token. You can authenticate your request through the api_key parameter in the body and the query, via an authentication header, or with a query parameter.
For applications that authenticate on behalf of Roboflow users, see Sign In With Roboflow (Getting Started). OAuth access tokens work with all of the authentication methods below.
We recommend you authenticate with the REST API by sending your API key as a bearer authentication header.
Here is an example of the header structure:
Authorization: Bearer abcdefghijklmnopqrstuvwxyzYou can send your API key as a parameter within a JSON request body of POST endpoints.
Here is an example of using an API key in the body of a request:
{
"api_key":"abcdefghijklmnopqrstuvwxyz"
}You can also send your API key through a query parameter in the URL of your request.
We recommend against this method of authentication for production applications for security reasons. We instead recommend sending authentication headers.
Here is an example of an API key sent in a query parameter:
Last updated
Was this helpful?
Was this helpful?
https://api.roboflow.com?api_key=abcdefghijklmnopqrstuvwxyz