API tokens and MCP

To work with quiry's conversations and customers from tools outside the console, create a token. You do this in Settings > API tokens. The menu appears only if you have permission to manage API tokens.

Create a token

  1. Under New token, write a name that says what the token is for.
  2. Choose the Permissions to give it. Pick only what the job needs.
  3. Select Create token.

The token is shown only right after you create it. Copy it now. You cannot see it again after leaving this screen.

Treat a token like a password. Do not paste it into a code repository or a chat.

Edit a token

In the token list, press Edit to change the name and permissions. The name is what customers see when an AI reply is sent with this token. Renaming does not change replies already sent; they keep the name they were sent with.

Revoke a token

Check Last used in the Tokens list, and Revoke any token that is unused or leaked. A revoked token stops working immediately.

Connect over MCP

quiry provides an MCP server. Connect an AI tool such as Claude and it can read conversations, reply, and change settings from there. It can do only what the token's permissions allow.

Select Copy command under MCP connection, put your token in place of <token>, and run it in a terminal.

claude mcp add --transport http quiry https://quiry.me/api/mcp --header "Authorization: Bearer <token>"

Connection steps per tool are in Check and reply to conversations from Claude, ChatGPT and Cursor.

Send messages API

A token can send a reply to a customer. Use it, for example, from an AI server that receives a notification webhook and answers through this API. The token needs the Reply to conversations permission, and it can only reach conversations within the site scope of the member who created it.

POST https://quiry.me/api/v1/conversations/{conversation id}/messages

Send Authorization: Bearer <token> in the header and a JSON body.

FieldDescription
bodyThe reply text, up to 8,000 characters. May be empty when you send only attachments
aiRequired. true if an AI wrote the reply, false if you are sending words a person wrote
attachmentsOptional. [{ "path": "...", "name": "..." }], up to 5
curl -X POST https://quiry.me/api/v1/conversations/<conversation id>/messages \
  -H "Authorization: Bearer <token>" -H "Content-Type: application/json" \
  -d '{ "body": "Our team will check the schedule and get back to you.", "ai": true }'

A successful call returns 201 and the created message. Errors look like { "error": "...", "message": "..." } with these status codes.

CodeMeaning
400ai is missing or not a boolean. The body is empty, or the length or attachment count is over the limit
401The token is missing or invalid
403The token lacks the reply permission or cannot send on this site
404The conversation was not found

A reply with `ai` set to `true` shows an AI reply badge next to the name. The name follows your responder display setting, with the token name in place of a person's name: Acme (Support bot) for company and name, Acme for company or name only, and the photo is your logo. Replies sent from the console always have ai set to false.

In the console conversation, replies sent through the API or MCP also show Sent with API token 'name'. Renaming a token does not change replies already sent; they keep the name they were sent with.

Connected apps

Apps connected by logging in, instead of with a token, appear under Connected apps. When an app asks to connect, quiry shows a screen asking which API token to connect with, and only apps you allowed stay listed. The list shows which token each app connected with.

Claude connects with an API token you choose, and changing the token's permissions carries over to the connection. You can only choose tokens you created. If you have none, you can go create one right from that screen. Changing permissions with the token's Edit applies right away to the Claude connected with it, and revoking the token stops the connection from working.

OAuth clients are for registering an app of your own that connects by login. Creating one gives you a Client ID, and a Client secret as well if you need one.

Next is Check and reply to conversations from Claude, ChatGPT and Cursor.