Skip to main content
POST
/
oauth
/
token
OAuth 2.1 token endpoint (code exchange + refresh)
curl --request POST \
  --url https://api.mnemom.ai/v1/oauth/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'code=<string>' \
  --data 'redirect_uri=<string>' \
  --data 'client_id=<string>' \
  --data 'code_verifier=<string>' \
  --data 'refresh_token=<string>'
{
  "access_token": "<string>",
  "token_type": "Bearer",
  "expires_in": 123,
  "refresh_token": "<string>",
  "scope": "<string>"
}

Body

application/x-www-form-urlencoded
grant_type
enum<string>
required
Available options:
authorization_code,
refresh_token
code
string
redirect_uri
string<uri>
client_id
string
code_verifier
string
refresh_token
string

Response

Token response (RFC 6749 §5.1).

access_token
string
required
token_type
enum<string>
required
Available options:
Bearer
expires_in
integer
required
refresh_token
string
scope
string