Skip to main content
Understanding error responses and how to handle them.

Error response format

All errors follow the JSON-RPC 2.0 error format:

Protocol errors

These occur at the JSON-RPC level before reaching any tool.

Authentication errors


Tool errors

Tool-level errors are returned within the content field of a successful JSON-RPC response:

Common tool errors


Best practices

1. Always check success in tool responses
2. Handle pagination boundaries — Always check pagination.hasNext before requesting the next page. Requesting beyond the last page returns an empty result set. 3. Validate filter values first — When filtering by custom fields, query without filters first (small page size) to discover available values in the response metadata, then apply filters. 4. Retry on transient errors — For -32603 (Internal Error), implement exponential backoff retries. These are typically transient server issues. 5. Handle response size limits — Responses are limited to 90 KB. Use smaller page sizes and iterate through pages for large datasets.

Troubleshooting

  • Verify the Authorization header format: Bearer dtk_live_...
  • Ensure there are no extra spaces or line breaks in the key
  • Check if the key has been revoked in the Deeto admin console
  • Check if filters are too restrictive — try without filters first
  • Use get-stats to verify data exists in the workspace
  • Confirm you’re using the correct userPrivileges value (reference vs prospect)
  • Reduce pageSize to get smaller responses
  • Use specific fields to limit returned data
  • Check pagination.hasNext and request the next page
  • Ensure publishedContent is provided and non-empty
  • Call get-content-instructions first for the correct schema
  • Verify all sourceContentObjectId references exist via get-contents
  • Check that name is at least 3 characters and unique per type in the conversation
The error message tells you exactly what’s needed: Forbidden: tool '<name>' requires '<required>' privilege but your API key has '<current>'. Ask a workspace Admin to generate a new key with the required privilege level.

Need help?

Contact your Deeto Customer Success Manager or email support@deeto.ai.