Zum Hauptinhalt springen

Retrieve Access Token from Authorization Code

POST/oauth2/token/
v2
POST
user-oauth-retrieve-access-token

The OAuth 2.0 client retrieves an Access Token from an existing authorization code according to RFC6749.

Request

Responses

application/json

The authorization server issues an access token as described in RFC6749.

  • access_tokenstring
    required

    The access token issued by the authorization server.

  • expires_ininteger
    required

    The lifetime in seconds of the access token. For example, the value "3600" denotes that the access token will expire in one hour from the time the response was generated.

  • refresh_tokenstring
    required

    The refresh token issued by the authorization server.

  • scopestring

    The scope of the access token as described by RFC6749.

  • token_type"bearer"
    required

    The type of the token issued as described in RFC6749.

Usage examples

$ curl \
--fail \
--location \
-X POST \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/oauth2/token