Siten Roast API
Use this chatbot from your own code, website or mobile app: a simple request/response API, OpenAPI and Postman documents, and Connect so your users can sign in with this chatbot.
Documentation
Import the OpenAPI document or the Postman collection to try every endpoint.
Example request
curl https://chatbot6.com/api/v1/bots/siten/chat \
-H "Authorization: Bearer c6k_your_key" \
-H "Content-Type: application/json" \
-d '{"messages":[{"role":"user","content":"Hello!"}],"lang":"en"}'Requests follow this chatbot’s plans, free daily requests and balance, just like the chat.
Connect: sign in with this chatbot
Let users of your website or mobile app sign in with this chatbot and chat through your app. Uses OAuth 2.0 with PKCE.
Send the user to the consent page
/connect?client_id=<client_id>&redirect_uri=<redirect_uri>&state=<state>&code_challenge=<S256(code_verifier)>&code_challenge_method=S256
Exchange the returned code for a key
curl https://chatbot6.com/api/v1/connect/token \
-H "Content-Type: application/json" \
-d '{"grant_type":"authorization_code","code":"<code>","client_id":"<client_id>","redirect_uri":"<redirect_uri>","code_verifier":"<code_verifier>"}'Call the chat API with that key on the user’s behalf
Sign in to create API keys and register Connect apps.
Sign in