API Reference
Create a Thread for a published Agent
Creates a Thread and starts the initial Run. Human PAT callers are attributed to the PAT owner. Organization Service tokens may omit user attribution or pass attributed_user_id when the token is allowed to do so.
POST
Authorizations
Use Authorization: Bearer grt_pat_... for Human PAT calls or an Organization Service token for machine calls.
Headers
Optional key for retry-safe create-thread and send-events calls. Reusing the same key with the same request returns the original response. Reusing the key while the original request is still processing returns 409.
Maximum string length:
128Path Parameters
Published Agent ID from the Agent's API Access panel.
Body
application/json