Our Chat Bot Public API

Use the new chatbot public API easily!

Endpoint

https://rotic.ir/api/v3/services/{token}/ai

Parameters
Status
data
required
api
required
unique_token
optional
user_data
optional

Responses
Code: 200
Success
If everything is OK, the response contains a text as your answer for users.
{
    "provider": {
        "website": "https://rotic.ir",
        "source": "AI Core V3"
    },
    "response": "Answer",
    "status": true,
    "error": {
        "code": null,
        "message": null
    }
}
                             
Code: 500
0037
If you forgot to send a valid API parameter, it will cause this error code.
{
    "provider": {
        "website": "https://rotic.ir",
        "source": "AI Core V3"
    },
    "response": null,
    "status": false,
    "error": {
        "code": 37,
        "message": "API key is not provided"
    }
}
                             
Code: 401
401
If your plan is not enterprise, so you cannot use the public API tools
{
    "provider": {
        "website": "https://rotic.ir",
        "source": "AI Core V3"
    },
    "response": null,
    "status": false,
    "error": {
        "code": 401,
        "message": "Buy our enterprise plans"
        }
}