Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.drssed.app/llms.txt

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

Call POST /auth/refresh to exchange your current refresh token for a new access token and a new refresh token. Both tokens are rotated on every call — the old refresh token is invalidated immediately after use. You can call this endpoint even if the current access token has already expired, as long as the refresh token is still valid.

Endpoint

FieldValue
MethodPOST
Path/auth/refresh
Auth requiredNo
Rate limit5 per minute

Request body

access_token
string
required
Your current access token. This may be expired.
refresh_token
string
required
Your current refresh token. Must be valid and unused.

Response fields

Status: 200 OK
access_token
string
required
New JWT access token. Replace your stored access token with this value.
expires_in
integer
required
Number of seconds until the new access token expires.
refresh_token
string
required
New refresh token. Replace your stored refresh token with this value immediately.

Example

cURL
curl --request POST \
  --url https://api.drssed.com/auth/refresh \
  --header 'Content-Type: application/json' \
  --data '{
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "refresh_token": "drt_a1b2c3d4e5f6..."
  }'
Response
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expires_in": 3600,
  "refresh_token": "drt_g7h8i9j0k1l2..."
}
Store the new refresh_token from every response. The previous refresh token is invalidated immediately after use and cannot be reused.