Skip to main content
POST
/
v1
/
auth
/
token
/
refresh
RefreshToken
curl --request POST \
  --url https://sdk.anghami.com/v1/auth/token/refresh \
  --header 'Content-Type: application/json' \
  --data '
{
  "refreshToken": "<string>",
  "clientId": "<string>"
}
'
{
  "token": {
    "accessToken": "<string>",
    "tokenType": "<string>",
    "expiresIn": 123,
    "refreshToken": "<string>",
    "scopes": [
      "AUTH_SCOPE_UNSPECIFIED"
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.sdk.anghami.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json

RefreshTokenRequest is the request message for obtaining a new access token using a previously issued refresh token.

refreshToken
string
required

The refresh token from a previous token exchange.

clientId
string
required

The client application identifier.

Response

Successful response

RefreshTokenResponse is the response message containing the new access token.

token
object

TokenInfo contains the OAuth 2.0 token response fields. Returned by ExchangeToken and RefreshToken RPCs.