Skip to main content
POST
/
sessions
/
refresh
Refresh a session
curl --request POST \
  --url https://sandbox.api.btdx.io/sessions/refresh \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '
{
  "refreshToken": "eyJ0eXAiOiJy....uHCQ"
}
'
{
  "_meta": {
    "_primary_document": "sessions",
    "_count": 1
  },
  "sessions": [
    {
      "accessToken": "eyJ0eXAiOiJh....bBDA",
      "refreshToken": "eyJ0eXAiOiJy....uHCQ",
      "accessExpiresAt": "2099-01-01T23:59:59.999Z",
      "refreshExpiresAt": "2099-01-01T23:59:59.999Z"
    }
  ]
}

Headers

authorization
string
required

Header with the refreshToken for the current session

Body

application/json

NOTE: This request body is deprecated, plase pass the refresh token as part of the authorization header instead

Pass the refresh token in the authorization header instead of using this request body

refreshToken
string
required

Response

OK

_meta
object
sessions
object[]