Access token
OpenAPI Specification
Public API (0.0.0)
2GIS GeoFlow Public API
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-urlencodedrequired
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: |
Response samples
- 200
- 400
- 401
- 500
Content type
application/json
{- "access_token": "string",
- "expires_in": 0,
- "token_type": "string"
}