API Reference v1.0.0
Deeplogix API
A unified REST API for model catalog discovery, inference, and account management. All endpoints return consistent JSON responses with an ok field and structured error codes.
Authentication
Deeplogix supports two authentication methods. Most API calls require Bearer token authentication. Public endpoints (catalog, providers) require no authentication.
Bearer Token
Pass your API key in the Authorization header.Authorization: Bearer YOUR_API_KEY
Obtain your key from the account dashboard or via POST /user/api-keys.
Cookie Session
Authenticate via a session cookie named session. Used primarily by browser-based integrations and the IFTTT connector.
Set automatically after a successful login flow.
Quickstart
From zero to inference in two API calls - no GPU setup, no model hosting required.
Browse available models
Call GET /public/catalog?is_live=true to list all available models. No API key required. Each model returns an id (UUID) you'll use for inference.
Get your API key
Sign in to your Deeplogix account and generate an API key from the dashboard, or call POST /user/api-keys with a valid session.
Run inference
POST to /model/{model_id}/chat with your Bearer token and message. That's it.
Health
Monitor server, database, and Redis status. No authentication required.
Returns health status of the server and all connected services including database and Redis. No authentication required.
status, timestamp, uptime (seconds), and per-service latency.
Simple uptime check. Returns a boolean status. No authentication required.
Public endpoints
Browse available models and providers. No authentication required.
Returns a filtered list of available models. All query parameters are optional.
true for production use.
Returns detailed information about a specific model by its UUID.
GET /public/catalog.
Returns a list of all supported model providers available on the platform.
Model inference
Run inference against any available model. All inference endpoints require Bearer token authentication.
Send a message to a specific model and receive a generated response. This is the primary inference endpoint.
GET /public/catalog.
Returns metadata about a specific model. Requires authentication.
Loads a model onto a host to make it available for inference. Call this before running inference if the model is not currently live.
Unloads a model from its host, freeing resources. The model will no longer be available for inference until reloaded.
User & account
Manage your account, API keys, and OAuth applications. All endpoints require authentication.
Returns profile information for the currently authenticated user.
Returns all API keys associated with the authenticated user's account.
Creates a new API key for the authenticated user. Store the returned key securely — it will not be shown again.
Permanently deletes the specified API key. Any applications using this key will immediately lose access.
OAuth applications
Create and manage OAuth 2.0 applications for third-party integrations. Requires authentication.
Returns all OAuth applications created by the authenticated user.
Creates a new OAuth application. Returns a client_secret — store it securely as it cannot be retrieved again.
Resets and reissues the client_secret for the specified OAuth application. The previous secret is immediately invalidated.
Error reference
All errors return consistent JSON with a status code and error identifier. Error codes follow the pattern E_<FIELD>-<TYPE>.
| Status | Code | Description |
|---|---|---|
| 200 | - | Successful response. Returns ok: true and a data object. |
| 400 | E_<FIELD>-BAD_REQUEST | The request is malformed or contains invalid parameters. Check field names and types. |
| 401 | Unauthorized | Missing or invalid Bearer token. Ensure your API key is correctly passed in the Authorization header. |
| 403 | E_<FIELD>-FORBIDDEN | Authenticated but not permitted to access this resource. |
| 404 | E_<FIELD>-NOT_FOUND | The requested resource does not exist. Verify the UUID or path parameter. |
| 500 | Internal Server Error | An unexpected server error occurred. If this persists, contact support. |
| 503 | Service Unavailable | One or more dependent services (database, Redis) are unhealthy. Check GET /health for details. |