API Reference - API Documentation

API Reference

Base URL

https://public.api-chat3d.com

Version

v1

Authentication

Authentication is token-based, using the Authorization HTTP header, and is required for all API endpoints.

Authorization: <token>

Content Type

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.

HTTP Status Codes

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.

CODEDESCRIPTION
200Request succeeded. The response contains the expected data.
400Bad request. The content have an unexcpected format.
401Authentication failed. The Authorization header is missing or contains an invalid token.
403Access denied. The token is valid but does not grant permission to access the resource or credits are insufficient.
405Unallowed method for this endpoint.
500Internal server error. An unexpected condition was encountered on the server.