REST API

This public API reference is intentionally scoped to authentication and external API-key/JWT endpoints for model access. Internal dashboard-only endpoints are excluded.

API testing playground

Use this built-in tester like a lightweight Postman. Pick an exposed endpoint preset, edit request parts, send live calls, inspect headers/body, and reuse recent history.

OpenAI-compatible chat completions endpoint.

https://veyra.tubox.cloud/v1/chat/completions

bash
curl -X POST "https://veyra.tubox.cloud/v1/chat/completions" \
  -H "Authorization: Bearer <token-or-api-key>" \
  -H "Content-Type: application/json" \
  --data '{\n  "model": "gpt-5.4-mini",\n  "stream": false,\n  "messages": [\n    {\n      "role": "system",\n      "content": "You are concise."\n    },\n    {\n      "role": "user",\n      "content": "Write a FastAPI health endpoint."\n    }\n  ]\n}'

Response

Send a request to see status, headers, and response body.

History

No requests yet.

Base URL

plain
https://veyra.tubox.cloud

Authentication

  • Access tokens come from POST /v1/auth/login.
  • API keys use Authorization: Bearer veyra_sk_....
  • Both can call the same LLM endpoints if permissions/scopes allow it.
bash
curl -H "Authorization: Bearer <access_token>" https://veyra.tubox.cloud/v1/models
curl -H "Authorization: Bearer veyra_sk_xxx" https://veyra.tubox.cloud/v1/chat/completions

Endpoint directory

MethodPathAuthPurpose
POST/v1/auth/registerNoneCreate a new user account with email/password credentials.
POST/v1/auth/loginNoneAuthenticate user and return token pair or 2FA challenge.
POST/v1/auth/verify-2faNoneComplete login using the session_token from /auth/login and a TOTP code.
POST/v1/auth/refreshNoneRotate refresh token and issue new access/refresh token pair.
POST/v1/auth/oauth/googleNoneExchange Google authorization code for Veyra token pair.
POST/v1/auth/logoutBearer access tokenRevoke current session or all sessions for current user.
POST/v1/auth/request-email-verificationNoneSend or resend email verification link (non-enumerating response).
POST/v1/auth/verify-emailNoneMark account email as verified using signed verification token.
POST/v1/auth/password-reset/requestNoneSend password reset email for known accounts.
POST/v1/auth/password-reset/confirmNoneReset account password using reset token and new password.
POST/v1/auth/2fa/setupBearer access token (session auth only)Generate TOTP secret/provisioning payload for authenticator enrollment.
POST/v1/auth/2fa/enableBearer access token (session auth only)Enable 2FA for account by validating TOTP code from setup phase.
POST/v1/auth/change-passwordBearer access token (session auth only)Change password, revoke sessions, and require re-login.
GET/v1/auth/sessionsBearer access token (session auth only)Return active/revoked/expired session inventory with metadata.
DELETE/v1/auth/sessions/{session_id}Bearer access token (session auth only)Revoke a specific user session by ID.
GET/v1/modelsBearer access token or API keyList models available to current principal after plan/settings filtering.
POST/v1/chat/completionsBearer access token or API keyOpenAI-compatible chat completion endpoint with stream and non-stream modes.
POST/v1/embeddingsBearer access token or API keyGenerate vector embeddings for one string or an array of strings.
POST/v1/images/generationsBearer access token or API keyGenerate images from a prompt using configured image-capable model.
POST/v1/audio/transcriptionsBearer access token or API keyTranscribe uploaded audio via multipart/form-data request.
POST/v1/help/contactNoneSubmit Help Center support ticket that is forwarded to admin support inbox.

Detailed endpoint pages

Detailed request/response/error documentation has been split into dynamic endpoint pages. Use the REST API sub-navigation in the left sidebar or jump directly using the directory below.

Authentication

Account Security

LLM API

Utility

Excluded by design
Billing, quota, admin, and internal dashboard support APIs are not public API docs surface.
Hello