Register
Request Example:
{
action: "Register",
API_KEY: "YOUR_API_KEY",
checksum: "azerty",
name: "tom",
prompt: "You are a pirate who sails the seas in search of treasure."
}Fields:
action(string): Specifies the API action to execute. For registration, use"Register".API_KEY(string): Your unique API key used to authenticate the request.checksum(string): A checksum to ensure the integrity of the request data. Provide a precomputed hash based on your API implementation.name(string): The name of the user to register.prompt(string): An optional prompt or description associated with the registration request.
Response Example:
{
"route":"Register",
"status":"success",
"token":"token_valide"
}Fields:
route(string): Indicates the API route or action associated with the response. Matches the request's"action"field.status(string): Describes the result of the request. Possible values include:"success": The registration was successful."error": The registration failed. Additional error details may be provided.
token(string): A unique authentication token generated upon successful registration. Use this token for subsequent authenticated requests.
Last updated