Authentication API
post
Generates an SDK access token for the provided email.
Authorizations
x-api-keystringRequired
Body
emailstring · emailRequired
The email address of the user requesting the token.
expiry_minutesinteger · min: 1OptionalDefault:
Optional token lifetime in minutes (default 60).
60Responses
200
Successfully generated SDK access token.
application/json
successbooleanRequired
Indicates if the request was successful.
identifierstringRequired
Identifier for the response, e.g., 'auth_successful'.
400
Bad Request - Invalid input or missing required fields.
application/json
401
Unauthorized - Invalid or missing API key.
application/json
500
Internal Server Error.
application/json
post/sdk/token
POST /authentication/v1/sdk/token HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 59
{
"email": "derek.lewis+uat@gospace.com",
"expiry_minutes": 60
}{
"success": true,
"data": {
"access_token": "<JWT Access Token>"
},
"identifier": "auth_successful"
}Last updated
Was this helpful?