Create a user session
Sign in to manage your workspaces and create backend API keys.
https://api.nuxie.ai/v1/tokensSign in with your Nuxie email and password to get a user session bearer token. Use that token to list your workspaces and create a workspace API key for your backend.
Your account must have an email/password login and a verified email address. This request does not need an existing API key.
Request body
emailbodystringrequiredEmail address of your Nuxie account.
passwordbodystringrequiredAccount password.
Response
objectstringrequiredtoken.
tokenstringrequiredUser session bearer token. Keep this secret and send it as Authorization: Bearer <token> when managing workspace keys.
expires_atstringrequiredISO 8601 session expiry time, or null if no time was returned.
userobjectrequiredSigned-in account.
User fields
idstringrequiredUser ID.
emailstringrequiredAccount email.
namestringrequiredAccount name.
Use the session token for account and key-management requests. Your backend should use the workspace key it creates for ongoing workspace operations.
Errors
| Status | Code | Action |
|---|---|---|
401 |
invalid_credentials |
Check the email and password. |
403 |
email_verification_required |
Verify the account’s email before trying again. |
429 |
Rate limit | Wait before retrying sign-in. |
400 |
token_create_failed |
Read the response’s error.message for the failure. |
End the session
Send DELETE /v1/tokens/current with this token as Authorization: Bearer <token>. A successful response contains object: "token" and revoked: true.