Auth
Issues a refresh and access token pair that include the given connection identifier in the payload. Authenticate via DRF token header or by posting an ORCID token. Requires upload permission. Any prior outstanding token for the same connection is blacklisted first.
Token-based authentication with required prefix "Token"
Opaque connection identifier stored on the issued tokens.
POST /api/auth/token/{connection}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"refresh": "text",
"access": "text"
}
}Takes a token and blacklists it. Must be used with the rest_framework_simplejwt.token_blacklist app installed.
POST /api/auth/token/blacklist/ HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"refresh": "text"
}{}Blacklists all outstanding refresh tokens for the authenticated user that do not include a connection claim. Returns how many tokens were newly revoked.
Token-based authentication with required prefix "Token"
DELETE /api/auth/token/blacklist-all/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"message": "text"
}
}Exchanges a refresh token for a new refresh and access token pair. The previous refresh token is blacklisted. If the submitted refresh token carries a connection claim, the new tokens retain it on the access token.
POST /api/auth/token/refresh/ HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"refresh": "text"
}{
"data": {
"refresh": "text",
"access": "text"
}
}Returns the authenticated SESAR user profile. When the request is authenticated with a JWT that carries a connection claim, jwt_connection echoes that value in uppercase; otherwise it is null.
Token-based authentication with required prefix "Token"
GET /api/auth/user/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"user": {
"individual": {
"id": 1,
"label": "text",
"fname": "text",
"lname": "text",
"alt_label": "text",
"description": "text",
"address": "text",
"email": "text",
"phone": "text",
"fax": "text",
"individual_uri": "text",
"institutions": [
{
"id": 1,
"institution_type": "text",
"label": "text",
"alt_label": "text",
"description": "text",
"country": "text",
"country_subdivision": "text",
"city": "text",
"ror": "text",
"parent_institutions": "text",
"can_edit": "text",
"created_by": 1
}
],
"institution_detail": "text",
"country": "text",
"can_edit": "text"
},
"email": "text",
"registration_date": "2026-01-01T00:00:00.000Z",
"orcid": "text",
"doi_prefix": "text",
"upload_permission_status": 1,
"notification_preferences": null,
"is_staff": true,
"is_admin": 1,
"storage_used": 1,
"storage_limit": 1
},
"jwt_connection": "text"
}
}Last updated
Was this helpful?