Skip to main content

Access token

OpenAPI Specification

Public API (0.0.0)

2GIS GeoFlow Public API

oauth

Getting an access token

Exchanges client credentials (client_id and client_secret) for an OAuth 2.0 access token using the Client Credentials grant type. The token is used to call API methods.

Request Body schema: application/x-www-form-urlencoded
required

OAuth 2.0 client credentials.

One of
string

Responses

Response Schema: application/json
access_token
string

Access token to be passed in the Authorization header.

expires_in
integer

Access token lifetime in seconds.

token_type
string

Access token type: Bearer.

Response samples

Content type
application/json
{
  • "access_token": "string",
  • "expires_in": 0,
  • "token_type": "string"
}