How to build an endpoint URL
All endpoint URLs follow this structure:
All endpoint URLs follow this structure:
https://public.api-chat3d.comv1Authentication is token-based, using the Authorization HTTP header, and is required for all API endpoints.
Authorization: <token>All POST requests must use the application/json content type. Requests with a different content type will be rejected.
Most responses from the API are returned in application/json format. However, in some error cases (e.g., internal server errors), the response body may be returned as plain text text/plain.
The Chat3D API uses standard HTTP status codes to indicate whether a request was successful or if an error occurred. The table below summarizes the most common codes returned by the API.
| CODE | DESCRIPTION |
|---|---|
| 200 | Request succeeded. The response contains the expected data. |
| 400 | Bad request. The content have an unexcpected format. |
| 401 | Authentication failed. The Authorization header is missing or contains an invalid token. |
| 403 | Access denied. The token is valid but does not grant permission to access the resource or credits are insufficient. |
| 405 | Unallowed method for this endpoint. |
| 500 | Internal server error. An unexpected condition was encountered on the server. |