Auth
Sign-in, sign-out, and session lifecycle.
Sign in
Exchange email and password for a tenant session JWT or a short-lived pre-auth token when two-factor authentication is required.
Technical details
Exact HTTP method and path your client calls
post
/auth/loginRequest body
| Field | Type | Description |
|---|---|---|
| emailrequired | string | |
| passwordrequired | string | |
| intent | string | enum: tenant |
Responses
Login successful: either tenant JWT, or 2FA challenge (preAuthToken)
| Field | Type | Description |
|---|---|---|
| (union) | LoginTokenResponse | LoginTwoFactorChallenge |
Example
nullErrors return the standard envelope. See error reference.
Code samples
curl --request POST \
--url 'https://api.not24get.me/auth/login' \
--header 'Content-Type: application/json' \
--data '{
"email": "string",
"password": "string",
"intent": "tenant"
}'Try it
Request body (JSON)
Refresh session
Exchange a refresh token for a new access token without re-entering credentials.
Technical details
Exact HTTP method and path your client calls
post
/auth/refreshRequest body
| Field | Type | Description |
|---|---|---|
| refreshToken | string | |
| session | string | enum: tenant |
Responses
New access and refresh tokens
| Field | Type | Description |
|---|---|---|
| accessToken | string | |
| refreshToken | string | |
| tokenType | string | enum: tenant |
| canManageBilling | boolean |
Example
{
"accessToken": "string",
"refreshToken": "string",
"tokenType": "tenant",
"canManageBilling": false
}Errors return the standard envelope. See error reference.
Code samples
curl --request POST \
--url 'https://api.not24get.me/auth/refresh' \
--header 'Content-Type: application/json' \
--data '{
"refreshToken": "string",
"session": "tenant"
}'Try it
Request body (JSON)