🔑

API keys and live examples

Use the Developer section to call Chatwith from your backend and build secure integrations.

Create and use an API key

  1. Open Developer → API.
  1. Create or reveal the API key and store it in your application’s secret manager.
  1. Send it as a Bearer token in the Authorization header.
  1. Start with the live /me or agent chat example, then open the API reference for full schemas.
curl https://api.chatwith.tools/v1/me \ -H "Authorization: Bearer YOUR_API_KEY"

Available REST workflows

  • Read account details and list agents.
  • Create an agent and send it a message.
  • List and re-sync knowledge sources.
  • List conversations.

Rotate a key

Regenerate the key if it may have been exposed. Update every server or MCP client that uses it immediately because the previous key stops working.

Related guides