Skip to main content

Give the OpenAPI document to AI

The AI Helpdesk API is published as an OpenAPI 3.1.0 document. You can fetch it without an API key.
Give this URL to an AI tool such as Claude Code or Cursor. The tool can then write code based on the endpoints, parameters, and response shapes. For tools that cannot read a URL directly, download the file and pass it in.
To check the spec in a browser, open the API documentation.

Things to watch when AI writes code

Check the following before you run code that AI wrote.
  • Authentication uses the X-API-Key header. If the code uses Authorization: Bearer, fix it
  • Do not put the API key directly in code or prompts. Have the code read it from an environment variable
  • Use an Operator API key for code that only reads data. An Admin key can also create, update, and delete knowledge and playbooks
  • Check ok to tell success from failure, and handle the error message on failure
  • count is the number of items in that response. Do not treat it as the total for the organization
  • Only the knowledge list (nextCursor) supports fetching further pages. Code that uses page numbers or offsets on other lists will not work
  • Knowledge docId values contain /. Encode it as %2F when you put it in a path
  • Keep parallel requests to about 20 per second per API key

Examples

After giving the AI tool the OpenAPI document, you can ask for things like the following.

Find endpoints for what you want to do

Daily session report

Find knowledge that is not cited

Review playbook improvement proposals

Last modified on October 22, 2026