{"openapi":"3.1.0","info":{"title":"AutoGPT Platform External API","summary":"External API for AutoGPT Platform integrations (v2)","description":"The v2 API provides comprehensive access to the AutoGPT Platform for building\nintegrations, automations, and custom applications.\n\n### Key Improvements over v1\n\n- **Consistent naming**: Uses `graph_id`/`graph_version` consistently\n- **One list shape**: every list endpoint takes `limit`/`cursor` and returns\n  `{\"items\": [...], \"next_cursor\": ..., \"total_count\": ...}`\n- **One error shape**: every non-2xx response is\n  `{\"error\": {\"code\", \"message\", \"details\"}}`\n- **Comprehensive coverage**: Access to library, runs, schedules, credits, and more\n- **Human-in-the-loop**: Review and approve agent decisions via the API\n\nFor authentication details and usage examples, see the\n[API Integration Guide](https://agpt.co/docs/platform/api-and-integrations/api-guide).\n\n### Rate Limits\n\nAll endpoints are subject to a global rate limit per authenticated user:\n**200 requests per minute**. Unauthenticated requests are limited to\n**5 requests per minute** per client IP.\n\nSome endpoints have additional per-endpoint rate limits (documented on each\nendpoint). When a rate limit is exceeded, the API returns `429 Too Many Requests`.\n\n### Pagination\n\nList endpoints take `limit` (1-100, default 20) and `cursor`, and return\n`{\"items\": [...], \"next_cursor\": ..., \"total_count\": ...}`. Pass `next_cursor`\nback as `cursor` for the next page; it is `null` on the last page. Cursors are\nopaque. `total_count` counts the matches across all pages, and is `null` only\nwhere the source cannot report one.\n\n### Status codes\n\n`201` when a resource is created, `202` when work is queued, `204` on delete,\n`200` on everything else. An endpoint that starts work, stores files or calls\nout answers `402` (`payment_required`) for an account without an active plan.\n\n### Errors\n\nEvery non-2xx response is `{\"error\": {\"code\", \"message\", \"details\"}}`. Branch\non `code`, a stable snake_case identifier; `message` is for humans.","version":"2.0.0"},"servers":[{"url":"https://backend.agpt.co/api/v2","description":"AutoGPT Cloud"},{"url":"{origin}/api/v2","description":"Self-hosted with Docker Compose","variables":{"origin":{"default":"http://localhost:8006"}}},{"url":"{origin}/_agpt/api/v2","description":"Self-hosted single container","variables":{"origin":{"default":"http://localhost:3000"}}}],"paths":{"/blocks":{"get":{"tags":["blocks"],"summary":"List available blocks","description":"List all available blocks with their input/output schemas and cost information.","operationId":"listAvailableBlocks","security":[{"APIKeyHeader":["READ_BLOCK"]},{"HTTPBearer":["READ_BLOCK"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_BlockInfo_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/credits":{"get":{"tags":["credits"],"summary":"Get credit balance","description":"Get the current credit balance for the authenticated user.","operationId":"getCreditBalance","security":[{"APIKeyHeader":["READ_CREDITS"]},{"HTTPBearer":["READ_CREDITS"]}],"parameters":[{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditBalance"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/credits/cost-summary":{"get":{"tags":["credits"],"summary":"Get execution cost summary","description":"Aggregated cost breakdown for the user's graph executions.","operationId":"getAutomationCostSummary","security":[{"APIKeyHeader":["READ_CREDITS"]},{"HTTPBearer":["READ_CREDITS"]}],"parameters":[{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Window start (UTC). Defaults to start of current calendar month.","title":"Since"},"description":"Window start (UTC). Defaults to start of current calendar month."},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Window end (UTC). Defaults to now.","title":"Until"},"description":"Window end (UTC). Defaults to now."},{"name":"top_runs_limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"description":"Maximum number of top-cost runs to return.","default":10,"title":"Top Runs Limit"},"description":"Maximum number of top-cost runs to return."},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationCostSummary"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/credits/invoices":{"get":{"tags":["credits"],"summary":"List Stripe invoices","description":"Recent Stripe invoices for the current user.\n\nStripe returns at most `limit` invoices and offers neither a cursor nor a\ntotal here, so `next_cursor` and `total_count` are always `null`; raise\n`limit` to see further back.","operationId":"listCreditInvoices","security":[{"APIKeyHeader":["READ_CREDITS"]},{"HTTPBearer":["READ_CREDITS"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_InvoiceItem_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/credits/subscription":{"get":{"tags":["credits"],"summary":"Get subscription status","description":"Get the current subscription tier, pricing, and pending changes.\n\n**Rate limit:** 60 requests per minute per user.","operationId":"getSubscriptionStatus","security":[{"APIKeyHeader":["READ_CREDITS"]},{"HTTPBearer":["READ_CREDITS"]}],"parameters":[{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionStatus"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/credits/transactions":{"get":{"tags":["credits"],"summary":"Get credit transaction history","description":"Get credit transaction history for the authenticated user.\n\n`total_count` is `null`: the history groups the raw rows (every node charge\nof one run collapses into one item), so a row count would not match what\npaging through this endpoint yields.","operationId":"listCreditTransactions","security":[{"APIKeyHeader":["READ_CREDITS"]},{"HTTPBearer":["READ_CREDITS"]}],"parameters":[{"name":"transaction_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["TOP_UP","USAGE","GRANT","REFUND","CARD_CHECK","SUBSCRIPTION"],"type":"string"},{"type":"null"}],"description":"Filter by transaction type","title":"Transaction Type"},"description":"Filter by transaction type"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CreditTransaction_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/files":{"get":{"tags":["files"],"summary":"List workspace files","description":"List files in the user's workspace.","operationId":"listWorkspaceFiles","security":[{"APIKeyHeader":["READ_FILES"]},{"HTTPBearer":["READ_FILES"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WorkspaceFileInfo_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/files/upload":{"post":{"tags":["files"],"summary":"Upload file to workspace","description":"Upload a file to the user's workspace.\n\nThe file is listed by `GET /files` and can be passed to agent file inputs\nas the returned `file_uri`. Uploads are virus-scanned before storage and\ncount against the account's storage quota.\n\n**Rate limit:** 20 requests per 5 minutes per user.","operationId":"uploadWorkspaceFile","security":[{"APIKeyHeader":["WRITE_FILES"]},{"HTTPBearer":["WRITE_FILES"]}],"parameters":[{"name":"overwrite","in":"query","required":false,"schema":{"type":"boolean","description":"Replace an existing file with the same path","default":false,"title":"Overwrite"},"description":"Replace an existing file with the same path"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_uploadWorkspaceFile"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadWorkspaceFileResponse"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/files/{file_id}":{"delete":{"tags":["files"],"summary":"Delete file from workspace","description":"Delete a file from the user's workspace, with its stored content.","operationId":"deleteWorkspaceFile","security":[{"APIKeyHeader":["WRITE_FILES"]},{"HTTPBearer":["WRITE_FILES"]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"tags":["files"],"summary":"Get workspace file metadata","description":"Get metadata for a specific file in the user's workspace.","operationId":"getWorkspaceFileInfo","security":[{"APIKeyHeader":["READ_FILES"]},{"HTTPBearer":["READ_FILES"]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceFileInfo"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/files/{file_id}/download":{"get":{"tags":["files"],"summary":"Download file from workspace","description":"Download a file from the user's workspace.","operationId":"getWorkspaceFileDownload","security":[{"APIKeyHeader":["READ_FILES"]},{"HTTPBearer":["READ_FILES"]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/graphs":{"get":{"tags":["graphs"],"summary":"List graphs","description":"List all graphs owned by the authenticated user.","operationId":"listGraphs","security":[{"APIKeyHeader":["READ_GRAPH"]},{"HTTPBearer":["READ_GRAPH"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_GraphMeta_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["graphs"],"summary":"Create graph","description":"Create a new agent graph.","operationId":"createGraph","security":[{"APIKeyHeader":["WRITE_GRAPH"]},{"HTTPBearer":["WRITE_GRAPH"]}],"parameters":[{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Graph"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/graphs/{graph_id}":{"get":{"tags":["graphs"],"summary":"Get graph details","description":"Get detailed information about a specific graph.\n\nReturns the active version by default. Pass `version` to retrieve\na specific version instead.","operationId":"getGraphDetails","security":[{"APIKeyHeader":["READ_GRAPH"]},{"HTTPBearer":["READ_GRAPH"]}],"parameters":[{"name":"graph_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Id"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Specific version to retrieve (default: active version)","title":"Version"},"description":"Specific version to retrieve (default: active version)"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Graph"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"put":{"tags":["graphs"],"summary":"Update graph by creating a new version","description":"Update a graph by creating a new version.\n\nThis does not modify existing versions; it creates a new version\nwith the provided graph definition.","operationId":"updateGraphCreateVersion","security":[{"APIKeyHeader":["WRITE_GRAPH"]},{"HTTPBearer":["WRITE_GRAPH"]}],"parameters":[{"name":"graph_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Graph"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/graphs/{graph_id}/blocks":{"get":{"tags":["graphs"],"summary":"List blocks used in a graph","description":"List the unique blocks used by a graph.","operationId":"listBlocksInGraph","security":[{"APIKeyHeader":["READ_GRAPH"]},{"HTTPBearer":["READ_GRAPH"]}],"parameters":[{"name":"graph_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_BlockInfo_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/graphs/{graph_id}/credentials":{"get":{"tags":["graphs"],"summary":"Get graph credentials","description":"List credential requirements for a graph and matching user credentials.","operationId":"getCredentialRequirementsForGraph","security":[{"APIKeyHeader":["READ_INTEGRATIONS"]},{"HTTPBearer":["READ_INTEGRATIONS"]}],"parameters":[{"name":"graph_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CredentialRequirement_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/graphs/{graph_id}/library-agent":{"get":{"tags":["graphs"],"summary":"Get library agent for graph","description":"Get the library agent associated with a specific graph.","operationId":"getLibraryAgentForGraph","security":[{"APIKeyHeader":["READ_LIBRARY"]},{"HTTPBearer":["READ_LIBRARY"]}],"parameters":[{"name":"graph_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryAgent"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/graphs/{graph_id}/marketplace-listing":{"get":{"tags":["graphs"],"summary":"Get marketplace listing for graph","description":"Get the marketplace listing for a given graph, if one exists.","operationId":"getMarketplaceListingForGraph","security":[{"APIKeyHeader":["READ_STORE"]},{"HTTPBearer":["READ_STORE"]}],"parameters":[{"name":"graph_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceAgentDetails"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/graphs/{graph_id}/settings":{"patch":{"tags":["graphs"],"summary":"Update graph settings","description":"Update settings for a graph.","operationId":"updateGraphSettings","security":[{"APIKeyHeader":["WRITE_GRAPH"]},{"HTTPBearer":["WRITE_GRAPH"]}],"parameters":[{"name":"graph_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphSettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphSettings"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/graphs/{graph_id}/versions":{"get":{"tags":["graphs"],"summary":"List graph versions","description":"Get all versions of a specific graph.","operationId":"listGraphVersions","security":[{"APIKeyHeader":["READ_GRAPH"]},{"HTTPBearer":["READ_GRAPH"]}],"parameters":[{"name":"graph_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Graph_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/graphs/{graph_id}/versions/active":{"put":{"tags":["graphs"],"summary":"Set active graph version","description":"Set which version of a graph is the active version.\n\nThe active version is the one used when executing the graph\nand what is shown to users in the UI.","operationId":"updateGraphSetActiveVersion","security":[{"APIKeyHeader":["WRITE_GRAPH"]},{"HTTPBearer":["WRITE_GRAPH"]}],"parameters":[{"name":"graph_id","in":"path","required":true,"schema":{"type":"string","title":"Graph Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphSetActiveVersionRequest"}}}},"responses":{"204":{"description":"Successful Response"},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/integrations/credentials":{"get":{"tags":["integrations"],"summary":"List integration credentials","description":"List integration credentials for the authenticated user.","operationId":"listIntegrationCredentials","security":[{"APIKeyHeader":["READ_INTEGRATIONS"]},{"HTTPBearer":["READ_INTEGRATIONS"]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by provider name (e.g., 'github', 'google')","title":"Provider"},"description":"Filter by provider name (e.g., 'github', 'google')"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CredentialInfo_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["integrations"],"summary":"Create integration credential","description":"Create a new integration credential.\n\nSupports `api_key`, `user_password`, and `host_scoped` credential types.\nOAuth credentials must be set up through the web UI.","operationId":"createIntegrationCredential","security":[{"APIKeyHeader":["MANAGE_INTEGRATIONS"]},{"HTTPBearer":["MANAGE_INTEGRATIONS"]}],"parameters":[{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/APIKeyCredentialCreateRequest"},{"$ref":"#/components/schemas/UserPasswordCredentialCreateRequest"},{"$ref":"#/components/schemas/HostScopedCredentialCreateRequest"}],"discriminator":{"propertyName":"type","mapping":{"api_key":"#/components/schemas/APIKeyCredentialCreateRequest","user_password":"#/components/schemas/UserPasswordCredentialCreateRequest","host_scoped":"#/components/schemas/HostScopedCredentialCreateRequest"}},"title":"Request"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialInfo"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/integrations/credentials/{credential_id}":{"delete":{"tags":["integrations"],"summary":"Delete integration credential","description":"Delete an integration credential.\n\nWebhooks registered with it are removed, and OAuth tokens are revoked at\nthe provider. While an agent still uses one of those webhooks the request\nis refused with 409 unless `force=true`.\n\nPlatform-provided credentials cannot be deleted. Any agents using this\ncredential will fail on their next run.","operationId":"deleteIntegrationCredential","security":[{"APIKeyHeader":["DELETE_INTEGRATIONS"]},{"HTTPBearer":["DELETE_INTEGRATIONS"]}],"parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","title":"Credential Id"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean","description":"Delete even if a trigger registered with this credential is still used by an agent; the trigger stops firing","default":false,"title":"Force"},"description":"Delete even if a trigger registered with this credential is still used by an agent; the trigger stops firing"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/library/agents":{"get":{"tags":["library"],"summary":"List library agents","description":"List agents in the user's library, oldest first.","operationId":"listLibraryAgents","security":[{"APIKeyHeader":["READ_LIBRARY"]},{"HTTPBearer":["READ_LIBRARY"]}],"parameters":[{"name":"published","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by marketplace publish status","title":"Published"},"description":"Filter by marketplace publish status"},{"name":"favorite","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by `isFavorite` attribute","title":"Favorite"},"description":"Filter by `isFavorite` attribute"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LibraryAgent_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/library/agents/{agent_id}":{"delete":{"tags":["library"],"summary":"Delete library agent","description":"Remove an agent from the user's library.","operationId":"deleteLibraryAgent","security":[{"APIKeyHeader":["WRITE_LIBRARY"]},{"HTTPBearer":["WRITE_LIBRARY"]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"tags":["library"],"summary":"Get library agent","description":"Get detailed information about a specific agent in the user's library.","operationId":"getLibraryAgent","security":[{"APIKeyHeader":["READ_LIBRARY"]},{"HTTPBearer":["READ_LIBRARY"]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryAgent"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["library"],"summary":"Update library agent","description":"Update properties of a library agent.","operationId":"updateLibraryAgent","security":[{"APIKeyHeader":["WRITE_LIBRARY"]},{"HTTPBearer":["WRITE_LIBRARY"]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryAgentUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryAgent"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/library/agents/{agent_id}/credentials":{"get":{"tags":["library"],"summary":"Get library agent credential requirements","description":"List credential requirements and matching user credentials for a library agent.","operationId":"getCredentialRequirementsForLibraryAgent","security":[{"APIKeyHeader":["READ_INTEGRATIONS"]},{"HTTPBearer":["READ_INTEGRATIONS"]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CredentialRequirement_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/library/agents/{agent_id}/fork":{"post":{"tags":["library"],"summary":"Fork library agent","description":"Fork (clone) a library agent.\n\nCreates a deep copy of the agent's underlying graph and all its nodes,\nassigning new IDs. The cloned graph is added to the user's library as\nan independent agent that can be modified without affecting the original.","operationId":"forkLibraryAgent","security":[{"APIKeyHeader":["WRITE_LIBRARY"]},{"HTTPBearer":["WRITE_LIBRARY"]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryAgent"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/library/agents/{agent_id}/runs":{"post":{"tags":["library"],"summary":"Execute library agent","description":"Execute an agent from the library.\n\nSend an `Idempotency-Key` to make a retry safe: a second request carrying the\nsame key returns the run the first one started rather than starting another.\nReusing a key for a different agent or body is a 422.\n\n**Rate limit:** 60 requests per minute per user.","operationId":"executeLibraryAgent","security":[{"APIKeyHeader":["RUN_AGENT"]},{"HTTPBearer":["RUN_AGENT"]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"description":"Retry-safety token. Repeating a request with the same value returns the run the first one started instead of starting another. Scoped to the caller and its organization, and bound to the request it first came with: reusing it for another agent or other inputs is a 422. Expires after 24 hours.","title":"Idempotency-Key"},"description":"Retry-safety token. Repeating a request with the same value returns the run the first one started instead of starting another. Scoped to the caller and its organization, and bound to the request it first came with: reusing it for another agent or other inputs is a 422. Expires after 24 hours."},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentGraphRun"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"No active plan, or a credit balance of zero","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The `Idempotency-Key`'s run has not been recorded yet","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid inputs, or an `Idempotency-Key` already used for a different request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The `Idempotency-Key` cannot be checked right now","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/library/folders":{"get":{"tags":["library"],"summary":"List folders in library","description":"List folders in the user's library.","operationId":"listLibraryFolders","security":[{"APIKeyHeader":["READ_LIBRARY"]},{"HTTPBearer":["READ_LIBRARY"]}],"parameters":[{"name":"parent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by parent folder ID. Omit for root folders.","title":"Parent Id"},"description":"Filter by parent folder ID. Omit for root folders."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LibraryFolder_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["library"],"summary":"Create folder in library","description":"Create a new folder in the user's library.","operationId":"createLibraryFolder","security":[{"APIKeyHeader":["WRITE_LIBRARY"]},{"HTTPBearer":["WRITE_LIBRARY"]}],"parameters":[{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryFolderCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryFolder"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/library/folders/tree":{"get":{"tags":["library"],"summary":"Get library folder tree","description":"Get the full folder tree for the user's library.\n\nPagination applies to the root folders; each item carries its whole subtree.","operationId":"getLibraryFolderTree","security":[{"APIKeyHeader":["READ_LIBRARY"]},{"HTTPBearer":["READ_LIBRARY"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LibraryFolderTree_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/library/folders/{folder_id}":{"delete":{"tags":["library"],"summary":"Delete folder in library","description":"Delete a folder and its subfolders. Agents in this folder will be moved to root.","operationId":"deleteLibraryFolder","security":[{"APIKeyHeader":["WRITE_LIBRARY"]},{"HTTPBearer":["WRITE_LIBRARY"]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"tags":["library"],"summary":"Get folder in library","description":"Get details of a specific folder.","operationId":"getLibraryFolder","security":[{"APIKeyHeader":["READ_LIBRARY"]},{"HTTPBearer":["READ_LIBRARY"]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryFolder"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["library"],"summary":"Update folder in library","description":"Update properties of a folder.","operationId":"updateLibraryFolder","security":[{"APIKeyHeader":["WRITE_LIBRARY"]},{"HTTPBearer":["WRITE_LIBRARY"]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryFolderUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryFolder"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/library/folders/{folder_id}/move":{"post":{"tags":["library"],"summary":"Move folder in library","description":"Move a folder to a new parent. Set target_parent_id to null to move to root.","operationId":"moveLibraryFolder","security":[{"APIKeyHeader":["WRITE_LIBRARY"]},{"HTTPBearer":["WRITE_LIBRARY"]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryFolderMoveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryFolder"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/library/presets":{"get":{"tags":["presets"],"summary":"List agent execution presets","description":"List presets in the user's library, optionally filtered by graph ID.","operationId":"listAgentRunPresets","security":[{"APIKeyHeader":["READ_LIBRARY"]},{"HTTPBearer":["READ_LIBRARY"]}],"parameters":[{"name":"graph_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by graph ID","title":"Graph Id"},"description":"Filter by graph ID"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AgentPreset_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["presets"],"summary":"Create agent execution preset","description":"Create a new preset with saved inputs and credentials for an agent.\n\nThe inputs may leave out required ones, which a run then supplies. An\nactive preset of an agent with a webhook trigger also needs `RUN_AGENT`.","operationId":"createAgentRunPreset","security":[{"APIKeyHeader":["WRITE_LIBRARY"]},{"HTTPBearer":["WRITE_LIBRARY"]}],"parameters":[{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPresetCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPreset"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/library/presets/setup-trigger":{"post":{"tags":["presets"],"summary":"Setup triggered preset","description":"Create a preset with a webhook trigger for automatic execution.\n\nThe agent's `trigger_setup_info` describes the required trigger configuration\nschema and credentials. Use it to populate `trigger_config` and\n`credentials_inputs`, and `inputs` for any inputs of the agent's own. For a\ntrigger you set up by hand in the other service,\nthe response's `webhook_url` is where that service must send its events.\nThis response is the only one that returns the trigger's secret settings.","operationId":"setupAgentRunTrigger","security":[{"APIKeyHeader":["WRITE_LIBRARY","RUN_AGENT"]},{"HTTPBearer":["WRITE_LIBRARY","RUN_AGENT"]}],"parameters":[{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTriggerSetupRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPreset"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/library/presets/{preset_id}":{"delete":{"tags":["presets"],"summary":"Delete agent execution preset","description":"Delete a preset. A webhook trigger's webhook is deregistered with it.","operationId":"deleteAgentRunPreset","security":[{"APIKeyHeader":["WRITE_LIBRARY"]},{"HTTPBearer":["WRITE_LIBRARY"]}],"parameters":[{"name":"preset_id","in":"path","required":true,"schema":{"type":"string","title":"Preset Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"tags":["presets"],"summary":"Get agent execution preset","description":"Get details of a specific preset.","operationId":"getAgentRunPreset","security":[{"APIKeyHeader":["READ_LIBRARY"]},{"HTTPBearer":["READ_LIBRARY"]}],"parameters":[{"name":"preset_id","in":"path","required":true,"schema":{"type":"string","title":"Preset Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPreset"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["presets"],"summary":"Update agent execution preset","description":"Update properties of a preset. Only provided fields will be updated.\n\nNew `inputs`, `trigger_config` or `credentials_inputs` on a webhook trigger\nre-register its webhook; whichever the request leaves out keeps its saved\nvalue, and a new `trigger_config` keeps the secret settings in its\n`hidden_inputs` unless it sets them. Setting `is_active` to true, or\nreconfiguring a trigger that stays active, also needs `RUN_AGENT`: an active\ntrigger starts runs.","operationId":"updateAgentRunPreset","security":[{"APIKeyHeader":["WRITE_LIBRARY"]},{"HTTPBearer":["WRITE_LIBRARY"]}],"parameters":[{"name":"preset_id","in":"path","required":true,"schema":{"type":"string","title":"Preset Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPresetUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPreset"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/library/presets/{preset_id}/execute":{"post":{"tags":["presets"],"summary":"Execute agent preset","description":"Execute a preset, optionally overriding saved inputs and credentials.\n\nSend an `Idempotency-Key` to make a retry safe, as with\n`POST /library/agents/{agent_id}/runs`.\n\n**Rate limit:** 60 requests per minute per user, shared with that endpoint.","operationId":"executeAgentRunPreset","security":[{"APIKeyHeader":["RUN_AGENT"]},{"HTTPBearer":["RUN_AGENT"]}],"parameters":[{"name":"preset_id","in":"path","required":true,"schema":{"type":"string","title":"Preset Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"description":"Retry-safety token. Repeating a request with the same value returns the run the first one started instead of starting another. Scoped to the caller and its organization, and bound to the request it first came with: reusing it for another agent or other inputs is a 422. Expires after 24 hours.","title":"Idempotency-Key"},"description":"Retry-safety token. Repeating a request with the same value returns the run the first one started instead of starting another. Scoped to the caller and its organization, and bound to the request it first came with: reusing it for another agent or other inputs is a 422. Expires after 24 hours."},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPresetRunRequest","default":{"inputs":{},"credentials_inputs":{}}}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentGraphRun"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"No active plan, or a credit balance of zero","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The `Idempotency-Key`'s run has not been recorded yet, or the expert this preset runs for is paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid inputs, or an `Idempotency-Key` already used for a different request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The `Idempotency-Key` cannot be checked right now","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/marketplace/agents":{"get":{"tags":["marketplace"],"summary":"List or search marketplace agents","description":"List agents available in the marketplace, with optional filtering and sorting.","operationId":"listMarketplaceAgents","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"featured","in":"query","required":false,"schema":{"type":"boolean","description":"Filter to only show featured agents","default":false,"title":"Featured"},"description":"Filter to only show featured agents"},{"name":"creator","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by creator username","title":"Creator"},"description":"Filter by creator username"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by category","title":"Category"},"description":"Filter by category"},{"name":"search_query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Literal + semantic search on names and descriptions","title":"Search Query"},"description":"Literal + semantic search on names and descriptions"},{"name":"sorted_by","in":"query","required":false,"schema":{"anyOf":[{"enum":["rating","runs","name","updated_at"],"type":"string"},{"type":"null"}],"description":"Property to sort results by. Ignored if search_query is provided.","title":"Sorted By"},"description":"Property to sort results by. Ignored if search_query is provided."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_MarketplaceAgent_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/marketplace/agents/by-version/{version_id}":{"get":{"tags":["marketplace"],"summary":"Get marketplace agent by version ID","description":"Get details of a marketplace agent by its store listing version ID.","operationId":"getMarketplaceAgentByListingVersion","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceAgentDetails"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/marketplace/agents/{username}/{agent_name}":{"get":{"tags":["marketplace"],"summary":"Get marketplace agent details","description":"Get details of a specific marketplace agent.","operationId":"getMarketplaceAgent","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","title":"Username"}},{"name":"agent_name","in":"path","required":true,"schema":{"type":"string","title":"Agent Name"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceAgentDetails"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/marketplace/agents/{username}/{agent_name}/add-to-library":{"post":{"tags":["marketplace"],"summary":"Add marketplace agent to library","description":"Add a marketplace agent to the authenticated user's library.","operationId":"addMarketplaceAgentToLibrary","security":[{"APIKeyHeader":["WRITE_LIBRARY"]},{"HTTPBearer":["WRITE_LIBRARY"]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","title":"Username"}},{"name":"agent_name","in":"path","required":true,"schema":{"type":"string","title":"Agent Name"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryAgent"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/marketplace/creators":{"get":{"tags":["marketplace"],"summary":"List marketplace creators","description":"List or search marketplace creators.","operationId":"listMarketplaceCreators","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"featured","in":"query","required":false,"schema":{"type":"boolean","description":"Filter to featured creators only","default":false,"title":"Featured"},"description":"Filter to featured creators only"},{"name":"search_query","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Literal + semantic search on names and descriptions","title":"Search Query"},"description":"Literal + semantic search on names and descriptions"},{"name":"sorted_by","in":"query","required":false,"schema":{"anyOf":[{"enum":["agent_rating","agent_runs","num_agents"],"type":"string"},{"type":"null"}],"description":"Sort field","title":"Sorted By"},"description":"Sort field"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_MarketplaceCreatorDetails_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/marketplace/creators/{username}":{"get":{"tags":["marketplace"],"summary":"Get marketplace creator details","description":"Get a marketplace creator's profile w/ stats.","operationId":"getMarketplaceCreator","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","title":"Username"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceCreatorDetails"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/marketplace/profile":{"get":{"tags":["marketplace"],"summary":"Get my marketplace profile","description":"Get the authenticated user's marketplace profile w/ creator stats.","operationId":"getMarketplaceMyProfile","security":[{"APIKeyHeader":["READ_STORE"]},{"HTTPBearer":["READ_STORE"]}],"parameters":[{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceCreatorDetails"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["marketplace"],"summary":"Update my marketplace profile","description":"Update the authenticated user's marketplace profile.\n\nOnly the fields present in the request body are changed. Set `avatar_url`\nto `null` to remove the avatar. A user without a profile yet can create one\nhere by sending at least `username`, `name` and `description`.","operationId":"updateMarketplaceMyProfile","security":[{"APIKeyHeader":["WRITE_STORE"]},{"HTTPBearer":["WRITE_STORE"]}],"parameters":[{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceUserProfileUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceUserProfile"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/marketplace/submissions":{"get":{"tags":["marketplace"],"summary":"List my marketplace submissions","description":"List the authenticated user's marketplace listing submissions.","operationId":"listMarketplaceSubmissions","security":[{"APIKeyHeader":["READ_STORE"]},{"HTTPBearer":["READ_STORE"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_MarketplaceAgentSubmission_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["marketplace"],"summary":"Create marketplace submission","description":"Submit a new marketplace listing for review.","operationId":"createMarketplaceSubmission","security":[{"APIKeyHeader":["WRITE_STORE"]},{"HTTPBearer":["WRITE_STORE"]}],"parameters":[{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceAgentSubmissionCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceAgentSubmission"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/marketplace/submissions/media":{"post":{"tags":["marketplace"],"summary":"Upload marketplace submission media","description":"Upload an image or video for a marketplace submission. Max size: 10 MB.\n\n**Rate limit:** 10 requests per 5 minutes per user.","operationId":"uploadMarketplaceSubmissionMedia","security":[{"APIKeyHeader":["WRITE_STORE"]},{"HTTPBearer":["WRITE_STORE"]}],"parameters":[{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_uploadMarketplaceSubmissionMedia"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceMediaUploadResponse"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/marketplace/submissions/{version_id}":{"delete":{"tags":["marketplace"],"summary":"Delete marketplace submission","description":"Delete a marketplace listing submission. Approved listings can not be deleted.","operationId":"deleteMarketplaceSubmission","security":[{"APIKeyHeader":["WRITE_STORE"]},{"HTTPBearer":["WRITE_STORE"]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"put":{"tags":["marketplace"],"summary":"Edit marketplace submission","description":"Replace a pending marketplace listing submission.\n\nEvery field is written, so send the whole listing; omitting one clears it.","operationId":"updateMarketplaceSubmission","security":[{"APIKeyHeader":["WRITE_STORE"]},{"HTTPBearer":["WRITE_STORE"]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","description":"Store listing version ID","title":"Version Id"},"description":"Store listing version ID"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceAgentSubmissionEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceAgentSubmission"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/me":{"get":{"tags":["identity"],"summary":"Get the identity and tenancy of the current credentials","description":"Get the user, organization and team these credentials act as.\n\nThe organization is fixed when the credentials are created; `team` reflects\nthe team they are pinned to, or the one selected with `X-Team-Id`.","operationId":"getIdentity","security":[{"APIKeyHeader":["IDENTITY"]},{"HTTPBearer":["IDENTITY"]}],"parameters":[{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Identity"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/runs":{"get":{"tags":["runs"],"summary":"List agent runs","description":"List agent runs, optionally filtered by graph, status and creation time.","operationId":"listAgentRuns","security":[{"APIKeyHeader":["READ_RUN"]},{"HTTPBearer":["READ_RUN"]}],"parameters":[{"name":"graph_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by graph ID","title":"Graph Id"},"description":"Filter by graph ID"},{"name":"statuses","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["INCOMPLETE","QUEUED","RUNNING","COMPLETED","TERMINATED","FAILED","REVIEW"],"type":"string"}},{"type":"null"}],"description":"Filter by run status; repeat to match several","title":"Statuses"},"description":"Filter by run status; repeat to match several"},{"name":"started_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Only runs created at or after this time","title":"Started After"},"description":"Only runs created at or after this time"},{"name":"started_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Only runs created at or before this time","title":"Started Before"},"description":"Only runs created at or before this time"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AgentGraphRun_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/runs/reviews":{"get":{"tags":["runs"],"summary":"List agent run human-in-the-loop reviews","description":"List human-in-the-loop reviews for agent runs.\n\nReturns reviews of all statuses if no status filter is given.","operationId":"listAgentRunReviews","security":[{"APIKeyHeader":["READ_RUN_REVIEW"]},{"HTTPBearer":["READ_RUN_REVIEW"]}],"parameters":[{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by graph execution ID","title":"Run Id"},"description":"Filter by graph execution ID"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["WAITING","APPROVED","REJECTED"],"type":"string"},{"type":"null"}],"description":"Filter by review status","title":"Status"},"description":"Filter by review status"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AgentRunReview_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/runs/{run_id}":{"delete":{"tags":["runs"],"summary":"Delete agent run","description":"Delete an agent run. A shared run stops being downloadable too.","operationId":"deleteAgentRun","security":[{"APIKeyHeader":["WRITE_RUN"]},{"HTTPBearer":["WRITE_RUN"]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","description":"Graph Execution ID","title":"Run Id"},"description":"Graph Execution ID"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"tags":["runs"],"summary":"Get agent run details","description":"Get detailed information about a specific run.","operationId":"getAgentRunDetails","security":[{"APIKeyHeader":["READ_RUN"]},{"HTTPBearer":["READ_RUN"]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","description":"Graph Execution ID","title":"Run Id"},"description":"Graph Execution ID"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentGraphRunDetails"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/runs/{run_id}/reviews":{"post":{"tags":["runs"],"summary":"Submit agent run human-in-the-loop reviews","description":"Submit responses to all pending human-in-the-loop reviews for a run.\n\nAll pending reviews for the run must be included in the request.\nApproving a review continues execution; rejecting terminates that branch.","operationId":"submitAgentRunReviews","security":[{"APIKeyHeader":["WRITE_RUN_REVIEW"]},{"HTTPBearer":["WRITE_RUN_REVIEW"]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","description":"Graph Execution ID","title":"Run Id"},"description":"Graph Execution ID"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunReviewsSubmitRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunReviewsSubmitResponse"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/runs/{run_id}/share":{"delete":{"tags":["runs"],"summary":"Disable sharing for an agent run","description":"Disable public sharing for a run, and the file downloads it allowed.","operationId":"disableAgentRunShare","security":[{"APIKeyHeader":["READ_RUN","SHARE_RUN"]},{"HTTPBearer":["READ_RUN","SHARE_RUN"]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","description":"Graph Execution ID","title":"Run Id"},"description":"Graph Execution ID"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["runs"],"summary":"Enable sharing for an agent run","description":"Enable public sharing for a run.\n\nSharing again issues a new token, and links from the earlier share stop\nworking.","operationId":"enableAgentRunShare","security":[{"APIKeyHeader":["READ_RUN","SHARE_RUN"]},{"HTTPBearer":["READ_RUN","SHARE_RUN"]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","description":"Graph Execution ID","title":"Run Id"},"description":"Graph Execution ID"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunShareResponse"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/runs/{run_id}/stop":{"post":{"tags":["runs"],"summary":"Stop agent run","description":"Stop a run that hasn't finished: one that is incomplete, queued, running,\nor waiting for a review.\n\nWaits up to 15 seconds for the run to stop, then returns it with its status\nat that moment. A run that has already finished answers `409`.","operationId":"stopAgentRun","security":[{"APIKeyHeader":["WRITE_RUN"]},{"HTTPBearer":["WRITE_RUN"]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","description":"Graph Execution ID","title":"Run Id"},"description":"Graph Execution ID"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentGraphRun"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/schedules":{"get":{"tags":["schedules"],"summary":"List run schedules","description":"List schedules for the authenticated user.\n\nA paused schedule is listed with no `next_run_time`.","operationId":"listGraphRunSchedules","security":[{"APIKeyHeader":["READ_SCHEDULE"]},{"HTTPBearer":["READ_SCHEDULE"]}],"parameters":[{"name":"graph_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by graph ID","title":"Graph Id"},"description":"Filter by graph ID"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AgentRunSchedule_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["schedules"],"summary":"Create run schedule","description":"Create a new execution schedule for a graph.","operationId":"createGraphRunSchedule","security":[{"APIKeyHeader":["WRITE_SCHEDULE","RUN_AGENT"]},{"HTTPBearer":["WRITE_SCHEDULE","RUN_AGENT"]}],"parameters":[{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunScheduleCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunSchedule"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/schedules/{schedule_id}":{"delete":{"tags":["schedules"],"summary":"Delete run schedule","description":"Delete an execution schedule.","operationId":"deleteGraphRunSchedule","security":[{"APIKeyHeader":["WRITE_SCHEDULE"]},{"HTTPBearer":["WRITE_SCHEDULE"]}],"parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","title":"Schedule Id"}},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/search":{"get":{"tags":["search"],"summary":"Search content and capabilities of the platform","description":"Search the platform's content and capabilities (hybrid search: literal + semantic).\n\nSearches public agents, blocks and documentation by default. The caller's own\nlibrary agents and workspace files are searchable too, each requiring the same\npermission that its own endpoints require.\n\n**Rate limit:** 30 requests per minute per user.","operationId":"search","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","description":"Search query","title":"Query"},"description":"Search query"},{"name":"content_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/SearchContentType"}},{"type":"null"}],"description":"Content types to filter by","title":"Content Types"},"description":"Content types to filter by"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by category","title":"Category"},"description":"Filter by category"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page (max 100)","default":20,"title":"Limit"},"description":"Items per page (max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` from the previous response","title":"Cursor"},"description":"`next_cursor` from the previous response"},{"name":"X-Team-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team.","title":"X-Team-Id"},"description":"Team to act in, within the organization the credentials belong to. Rejected for credentials already pinned to a team."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_MarketplaceSearchResult_"}}}},"400":{"description":"Malformed request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Credentials lack a required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Request failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Unhandled server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"APIKeyCredentialCreateRequest":{"properties":{"provider":{"type":"string","maxLength":100,"title":"Provider","description":"Provider name (e.g., 'github', 'openai')"},"title":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Title","description":"User-friendly name for this credential"},"type":{"type":"string","const":"api_key","title":"Type"},"api_key":{"type":"string","maxLength":16384,"title":"Api Key"}},"type":"object","required":["provider","type","api_key"],"title":"APIKeyCredentialCreateRequest","description":"Request to create an API key credential."},"AgentAutomationCost":{"properties":{"graph_id":{"type":"string","title":"Graph Id"},"cost_cents":{"type":"integer","title":"Cost Cents"},"run_count":{"type":"integer","title":"Run Count"}},"type":"object","required":["graph_id","cost_cents","run_count"],"title":"AgentAutomationCost","description":"Per-agent automation credit cost aggregation."},"AgentGraphRun":{"properties":{"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Organization the resource belongs to"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Team within the organization; null means organization-wide"},"id":{"type":"string","title":"Id"},"graph_id":{"type":"string","title":"Graph Id"},"graph_version":{"type":"integer","title":"Graph Version"},"status":{"type":"string","enum":["INCOMPLETE","QUEUED","RUNNING","COMPLETED","TERMINATED","FAILED","REVIEW"],"title":"Status"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs"},"credentials_inputs":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CredentialInputInfo"},"type":"object"},{"type":"null"}],"title":"Credentials Inputs","description":"Credential inputs used in this run (metadata only, no secrets)"},"preset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preset Id","description":"Preset ID used for this run"},"is_shared":{"type":"boolean","title":"Is Shared","description":"Whether this run is shared","default":false},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token","description":"Share token for public access"},"cost_cents":{"type":"integer","title":"Cost Cents","description":"Cost in cents"},"duration_seconds":{"type":"number","title":"Duration Seconds","description":"Wall-clock duration"},"node_exec_count":{"type":"integer","title":"Node Exec Count","description":"Number of nodes executed"},"correctness_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Correctness Score","description":"AI-generated score (0.0-1.0) indicating how well the execution achieved its intended purpose"}},"type":"object","required":["id","graph_id","graph_version","status","started_at","ended_at","inputs","cost_cents","duration_seconds","node_exec_count","correctness_score"],"title":"AgentGraphRun"},"AgentGraphRunDetails":{"properties":{"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Organization the resource belongs to"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Team within the organization; null means organization-wide"},"id":{"type":"string","title":"Id"},"graph_id":{"type":"string","title":"Graph Id"},"graph_version":{"type":"integer","title":"Graph Version"},"status":{"type":"string","enum":["INCOMPLETE","QUEUED","RUNNING","COMPLETED","TERMINATED","FAILED","REVIEW"],"title":"Status"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs"},"credentials_inputs":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CredentialInputInfo"},"type":"object"},{"type":"null"}],"title":"Credentials Inputs","description":"Credential inputs used in this run (metadata only, no secrets)"},"preset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preset Id","description":"Preset ID used for this run"},"is_shared":{"type":"boolean","title":"Is Shared","description":"Whether this run is shared","default":false},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token","description":"Share token for public access"},"cost_cents":{"type":"integer","title":"Cost Cents","description":"Cost in cents"},"duration_seconds":{"type":"number","title":"Duration Seconds","description":"Wall-clock duration"},"node_exec_count":{"type":"integer","title":"Node Exec Count","description":"Number of nodes executed"},"correctness_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Correctness Score","description":"AI-generated score (0.0-1.0) indicating how well the execution achieved its intended purpose"},"outputs":{"anyOf":[{"additionalProperties":{"items":{},"type":"array"},"type":"object"},{"type":"null"}],"title":"Outputs"},"node_executions":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentNodeExecution"},"type":"array"},{"type":"null"}],"title":"Node Executions","description":"Individual node execution results; may be omitted in case of permission restrictions"}},"type":"object","required":["id","graph_id","graph_version","status","started_at","ended_at","inputs","cost_cents","duration_seconds","node_exec_count","correctness_score","outputs","node_executions"],"title":"AgentGraphRunDetails","description":"Detailed information about a run including outputs and node executions."},"AgentNodeExecution":{"properties":{"node_id":{"type":"string","title":"Node Id"},"status":{"type":"string","enum":["INCOMPLETE","QUEUED","RUNNING","COMPLETED","TERMINATED","FAILED","REVIEW"],"title":"Status"},"inputs":{"additionalProperties":true,"type":"object","title":"Inputs","description":"Input values keyed by pin name"},"outputs":{"additionalProperties":{"items":{},"type":"array"},"type":"object","title":"Outputs","description":"Output values keyed by pin name, each with a list of results"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"}},"type":"object","required":["node_id","status","inputs","outputs","started_at","ended_at"],"title":"AgentNodeExecution","description":"Result of a single node execution within an agent run."},"AgentPreset":{"properties":{"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Organization the resource belongs to"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Team within the organization; null means organization-wide"},"id":{"type":"string","title":"Id"},"graph_id":{"type":"string","title":"Graph Id"},"graph_version":{"type":"integer","title":"Graph Version"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"is_active":{"type":"boolean","title":"Is Active"},"inputs":{"additionalProperties":true,"type":"object","title":"Inputs","description":"The agent's saved input values"},"trigger_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Trigger Config","description":"A webhook trigger's settings, less those in `hidden_inputs`"},"hidden_inputs":{"items":{"type":"string"},"type":"array","title":"Hidden Inputs","description":"A trigger's secret settings that are set but returned only when it is created. An update that leaves them out of `trigger_config` keeps them"},"webhook_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Id","description":"Webhook ID if this preset is triggered by a webhook"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Where the webhook's events are delivered. For a trigger you set up by hand in the other service, paste this URL there"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","graph_id","graph_version","name","description","is_active","inputs","created_at","updated_at"],"title":"AgentPreset","description":"A saved preset configuration for running an agent."},"AgentPresetCreateRequest":{"properties":{"graph_id":{"type":"string","maxLength":100,"title":"Graph Id","description":"Graph ID"},"graph_version":{"type":"integer","title":"Graph Version","description":"Graph version"},"name":{"type":"string","maxLength":100,"title":"Name","description":"Preset name"},"description":{"type":"string","maxLength":2000,"title":"Description","description":"Preset description","default":""},"inputs":{"additionalProperties":true,"type":"object","title":"Inputs","description":"Input values"},"credentials_inputs":{"additionalProperties":{"$ref":"#/components/schemas/CredentialsMetaInput"},"type":"object","title":"Credentials Inputs","description":"Credentials, keyed by the `field_name` of each of the agent's credential requirements"},"is_active":{"type":"boolean","title":"Is Active","description":"Whether the preset is active","default":true}},"type":"object","required":["graph_id","graph_version","name"],"title":"AgentPresetCreateRequest","description":"Request to create a preset."},"AgentPresetRunRequest":{"properties":{"inputs":{"additionalProperties":true,"type":"object","title":"Inputs","description":"Input overrides"},"credentials_inputs":{"additionalProperties":{"$ref":"#/components/schemas/CredentialsMetaInput"},"type":"object","title":"Credentials Inputs","description":"Credential overrides"}},"type":"object","title":"AgentPresetRunRequest","description":"Request to run an agent preset with optional overrides."},"AgentPresetUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs","description":"Replaces the agent's saved input values"},"trigger_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Trigger Config","description":"Replaces a webhook trigger's settings, re-registering its webhook. Settings in `hidden_inputs` it leaves out keep their value"},"credentials_inputs":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CredentialsMetaInput"},"type":"object"},{"type":"null"}],"title":"Credentials Inputs","description":"Replaces the saved credentials"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"AgentPresetUpdateRequest","description":"Request to update a preset."},"AgentRunRequest":{"properties":{"inputs":{"additionalProperties":true,"type":"object","title":"Inputs","description":"Input values for the agent"},"credentials_inputs":{"additionalProperties":{"$ref":"#/components/schemas/CredentialsMetaInput"},"type":"object","title":"Credentials Inputs","description":"Credentials for the agent, keyed by the `field_name` of each of its credential requirements"}},"type":"object","title":"AgentRunRequest","description":"Request to execute an agent."},"AgentRunReview":{"properties":{"node_exec_id":{"type":"string","title":"Node Exec Id"},"run_id":{"type":"string","title":"Run Id","description":"Graph Execution ID"},"graph_id":{"type":"string","title":"Graph Id"},"graph_version":{"type":"integer","title":"Graph Version"},"payload":{"$ref":"#/components/schemas/JsonValue","description":"Data to be reviewed"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions","description":"Instructions for the reviewer"},"editable":{"type":"boolean","title":"Editable","description":"Whether the reviewer can edit the data"},"status":{"type":"string","enum":["WAITING","APPROVED","REJECTED"],"title":"Status"},"requested_at":{"type":"string","format":"date-time","title":"Requested At"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"processed":{"type":"boolean","title":"Processed","description":"Whether the review has been consumed by the execution engine"},"reviewer_comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Comment"}},"type":"object","required":["node_exec_id","run_id","graph_id","graph_version","payload","instructions","editable","status","requested_at","reviewed_at","processed","reviewer_comment"],"title":"AgentRunReview","description":"A human-in-the-loop review for an agent run."},"AgentRunReviewDecision":{"properties":{"node_exec_id":{"type":"string","title":"Node Exec Id","description":"Node execution ID (review ID)"},"approved":{"type":"boolean","title":"Approved","description":"Whether to approve the data"},"edited_payload":{"anyOf":[{"$ref":"#/components/schemas/JsonValue"},{"type":"null"}],"description":"Modified payload data (if editing)"},"message":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Message","description":"Optional message from reviewer"},"auto_approve_future":{"type":"boolean","title":"Auto Approve Future","description":"Approve future reviews from this block automatically. Applies only when this review is approved, and ignores `edited_payload`.","default":false}},"type":"object","required":["node_exec_id","approved"],"title":"AgentRunReviewDecision","description":"Decision for a single review item."},"AgentRunReviewsSubmitRequest":{"properties":{"reviews":{"items":{"$ref":"#/components/schemas/AgentRunReviewDecision"},"type":"array","title":"Reviews","description":"All review decisions for the execution"}},"type":"object","required":["reviews"],"title":"AgentRunReviewsSubmitRequest","description":"Request to submit review responses for all pending reviews of an execution."},"AgentRunReviewsSubmitResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"approved_count":{"type":"integer","title":"Approved Count","description":"Number of reviews approved"},"rejected_count":{"type":"integer","title":"Rejected Count","description":"Number of reviews rejected"}},"type":"object","required":["run_id","approved_count","rejected_count"],"title":"AgentRunReviewsSubmitResponse","description":"Response after submitting reviews."},"AgentRunSchedule":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"graph_id":{"type":"string","title":"Graph Id"},"graph_version":{"type":"integer","title":"Graph Version"},"cron":{"type":"string","title":"Cron","description":"Cron expression for the schedule"},"timezone":{"type":"string","title":"Timezone","description":"Timezone the cron expression is read in"},"inputs":{"additionalProperties":true,"type":"object","title":"Inputs","description":"Input values for each scheduled run"},"next_run_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Run Time"}},"type":"object","required":["id","name","graph_id","graph_version","cron","timezone","inputs","next_run_time"],"title":"AgentRunSchedule","description":"An execution schedule for an agent."},"AgentRunScheduleCreateRequest":{"properties":{"graph_id":{"type":"string","maxLength":100,"title":"Graph Id","description":"Graph to run on this schedule"},"name":{"type":"string","maxLength":100,"title":"Name","description":"Display name for the schedule"},"cron":{"type":"string","maxLength":200,"title":"Cron","description":"Cron expression (e.g., '0 9 * * *' for 9am daily)"},"inputs":{"additionalProperties":true,"type":"object","title":"Inputs","description":"Input values for each scheduled run"},"credentials_inputs":{"additionalProperties":{"$ref":"#/components/schemas/CredentialsMetaInput"},"type":"object","title":"Credentials Inputs","description":"Credentials for each scheduled run, keyed by the `field_name` of each of the graph's credential requirements"},"graph_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Graph Version","description":"Graph version (default: active version)"},"timezone":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Timezone","description":"Timezone for schedule (e.g., 'America/New_York'). Defaults to user's timezone."}},"type":"object","required":["graph_id","name","cron"],"title":"AgentRunScheduleCreateRequest","description":"Request to create a schedule."},"AgentRunShareResponse":{"properties":{"share_url":{"type":"string","title":"Share Url","description":"Public URL for the shared run"},"share_token":{"type":"string","title":"Share Token","description":"Unique share token"}},"type":"object","required":["share_url","share_token"],"title":"AgentRunShareResponse","description":"Response after enabling sharing for an agent run."},"AgentTriggerSetupRequest":{"properties":{"name":{"type":"string","maxLength":100,"title":"Name","description":"Preset name"},"description":{"type":"string","maxLength":2000,"title":"Description","description":"Preset description","default":""},"graph_id":{"type":"string","maxLength":100,"title":"Graph Id","description":"Graph ID"},"graph_version":{"type":"integer","title":"Graph Version","description":"Graph version"},"trigger_config":{"additionalProperties":true,"type":"object","title":"Trigger Config","description":"Trigger block configuration"},"inputs":{"additionalProperties":true,"type":"object","title":"Inputs","description":"Values for the agent's own inputs, beside its trigger"},"credentials_inputs":{"additionalProperties":{"$ref":"#/components/schemas/CredentialsMetaInput"},"type":"object","title":"Credentials Inputs","description":"Credentials, keyed by the `field_name` of each of the agent's credential requirements"}},"type":"object","required":["name","graph_id","graph_version","trigger_config"],"title":"AgentTriggerSetupRequest","description":"Request to set up a webhook-triggered preset."},"AutomationCostSummary":{"properties":{"total_cents":{"type":"integer","title":"Total Cents"},"run_count":{"type":"integer","title":"Run Count"},"billable_run_count":{"type":"integer","title":"Billable Run Count"},"failed_cost_cents":{"type":"integer","title":"Failed Cost Cents"},"by_agent":{"items":{"$ref":"#/components/schemas/AgentAutomationCost"},"type":"array","title":"By Agent"},"top_runs":{"items":{"$ref":"#/components/schemas/TopAutomationCostRun"},"type":"array","title":"Top Runs"},"daily":{"items":{"$ref":"#/components/schemas/DailyAutomationCost"},"type":"array","title":"Daily"}},"type":"object","required":["total_cents","run_count","billable_run_count","failed_cost_cents","by_agent","top_runs","daily"],"title":"AutomationCostSummary","description":"Aggregated automation credit cost breakdown."},"BlockCategoryInfo":{"properties":{"category":{"type":"string","title":"Category","description":"Category identifier"},"description":{"type":"string","title":"Description","description":"Category description"}},"type":"object","required":["category","description"],"title":"BlockCategoryInfo","description":"A block's category."},"BlockContributorInfo":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"BlockContributorInfo"},"BlockCostInfo":{"properties":{"cost_type":{"$ref":"#/components/schemas/BlockCostType","description":"What the cost is charged per"},"cost_filter":{"additionalProperties":true,"type":"object","title":"Cost Filter","description":"Partial node input that, if it matches the input for an execution of this block, applies this cost to it"},"cost_cents":{"type":"integer","title":"Cost Cents","description":"Cost per {cost_type}, in cents"}},"type":"object","required":["cost_type","cost_filter","cost_cents"],"title":"BlockCostInfo","description":"Cost information for a block."},"BlockCostType":{"type":"string","enum":["run","byte","second","items","cost_usd","tokens"],"title":"BlockCostType","description":"What a block's cost is charged per."},"BlockInfo":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"categories":{"items":{"$ref":"#/components/schemas/BlockCategoryInfo"},"type":"array","title":"Categories"},"contributors":{"items":{"$ref":"#/components/schemas/BlockContributorInfo"},"type":"array","title":"Contributors"},"input_schema":{"additionalProperties":true,"type":"object","title":"Input Schema"},"output_schema":{"additionalProperties":true,"type":"object","title":"Output Schema"},"static_output":{"type":"boolean","title":"Static Output"},"block_type":{"$ref":"#/components/schemas/BlockType"},"costs":{"items":{"$ref":"#/components/schemas/BlockCostInfo"},"type":"array","title":"Costs"}},"type":"object","required":["id","name","description","categories","contributors","input_schema","output_schema","static_output","block_type","costs"],"title":"BlockInfo","description":"A building block that can be used in graphs."},"BlockType":{"type":"string","enum":["STANDARD","INPUT","OUTPUT","NOTE","WEBHOOK","WEBHOOK_MANUAL","AGENT","AI","AYRSHARE","HUMAN_IN_THE_LOOP","MCP_TOOL"],"title":"BlockType","description":"What kind of block this is.\n\nThe internal enum's values are UI labels (\"Human In The Loop\"); v2 publishes\nidentifiers, so its own values are the member names."},"Body_uploadMarketplaceSubmissionMedia":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_uploadMarketplaceSubmissionMedia"},"Body_uploadWorkspaceFile":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_uploadWorkspaceFile"},"CredentialInfo":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","enum":["api_key","oauth2","user_password","host_scoped"],"title":"Type"},"provider":{"type":"string","title":"Provider","description":"Integration provider name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"User-assigned title for this credential"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username","description":"Third-party service username (OAuth2 credentials only)"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","description":"Permission scopes granted to this credential"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"is_managed":{"type":"boolean","title":"Is Managed","description":"Provided by the platform; cannot be updated or deleted"}},"type":"object","required":["id","type","provider","title","scopes","expires_at","is_managed"],"title":"CredentialInfo","description":"A user's credential for an integration."},"CredentialInputInfo":{"properties":{"id":{"type":"string","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"provider":{"type":"string","title":"Provider"},"type":{"type":"string","title":"Type"}},"type":"object","required":["id","provider","type"],"title":"CredentialInputInfo","description":"Metadata about a credential input used in a run (no secrets)."},"CredentialRequirement":{"properties":{"field_name":{"type":"string","title":"Field Name","description":"Key to supply this credential under in `credentials_inputs`"},"provider":{"type":"string","title":"Provider","description":"Required provider name"},"supported_types":{"items":{"type":"string","enum":["api_key","oauth2","user_password","host_scoped"]},"type":"array","title":"Supported Types","description":"Credential types this requirement accepts"},"required_scopes":{"items":{"type":"string"},"type":"array","title":"Required Scopes","description":"Scopes an OAuth credential must carry to satisfy this"},"matching_credentials":{"items":{"$ref":"#/components/schemas/CredentialInfo"},"type":"array","title":"Matching Credentials","description":"User's credentials that match this requirement"}},"type":"object","required":["field_name","provider","supported_types","required_scopes","matching_credentials"],"title":"CredentialRequirement","description":"A credential requirement for an agent (graph)."},"CredentialsMetaInput":{"properties":{"id":{"type":"string","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"provider":{"type":"string","title":"Provider","description":"Provider name for integrations. Can be any string value, including custom provider names."},"type":{"type":"string","enum":["api_key","oauth2","user_password","host_scoped","device_code"],"title":"Type"}},"type":"object","required":["id","provider","type"],"title":"CredentialsMetaInput","credentials_provider":[],"credentials_types":[]},"CreditBalance":{"properties":{"balance_cents":{"type":"integer","title":"Balance Cents","description":"Current credit balance, in cents"}},"type":"object","required":["balance_cents"],"title":"CreditBalance","description":"User's credit balance."},"CreditTransaction":{"properties":{"transaction_key":{"type":"string","title":"Transaction Key"},"amount_cents":{"type":"integer","title":"Amount Cents","description":"Transaction amount in cents (positive or negative)"},"type":{"type":"string","enum":["TOP_UP","USAGE","GRANT","REFUND","CARD_CHECK","SUBSCRIPTION"],"title":"Type"},"transaction_time":{"type":"string","format":"date-time","title":"Transaction Time"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"origin":{"anyOf":[{"$ref":"#/components/schemas/CreditTransactionOrigin"},{"type":"null"}],"description":"Origin context linking this transaction to a graph (execution)"}},"type":"object","required":["transaction_key","amount_cents","type","transaction_time","description","origin"],"title":"CreditTransaction","description":"A credit transaction."},"CreditTransactionOrigin":{"properties":{"graph_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Graph Id","description":"ID of the graph that caused this transaction, if applicable"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id","description":"ID of the agent run that caused this transaction, if applicable"}},"type":"object","required":["graph_id","run_id"],"title":"CreditTransactionOrigin","description":"Origin context for a credit transaction."},"DailyAutomationCost":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"cost_cents":{"type":"integer","title":"Cost Cents"},"run_count":{"type":"integer","title":"Run Count"}},"type":"object","required":["date","cost_cents","run_count"],"title":"DailyAutomationCost","description":"Daily automation credit cost aggregation."},"ErrorDetail":{"properties":{"code":{"type":"string","title":"Code","description":"Stable machine-readable identifier for the failure"},"message":{"type":"string","title":"Message","description":"Human-readable explanation"},"details":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"},{"type":"null"}],"title":"Details","description":"Structured context, when the failure has any"}},"type":"object","required":["code","message"],"title":"ErrorDetail"},"ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}},"type":"object","required":["error"],"title":"ErrorResponse","description":"The body of every v2 response that is not 2xx."},"Graph":{"properties":{"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Organization the resource belongs to"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Team within the organization; null means organization-wide"},"id":{"type":"string","title":"Id"},"version":{"type":"integer","title":"Version"},"is_active":{"type":"boolean","title":"Is Active"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"recommended_schedule_cron":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Schedule Cron"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"forked_from_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forked From Id"},"forked_from_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Forked From Version"},"nodes":{"items":{"$ref":"#/components/schemas/GraphNode"},"type":"array","title":"Nodes"},"links":{"items":{"$ref":"#/components/schemas/GraphLink"},"type":"array","title":"Links"},"input_schema":{"additionalProperties":true,"type":"object","title":"Input Schema","description":"Input schema for the graph"},"output_schema":{"additionalProperties":true,"type":"object","title":"Output Schema","description":"Output schema for the graph"},"credentials_input_schema":{"additionalProperties":true,"type":"object","title":"Credentials Input Schema","description":"Schema for required credentials"}},"type":"object","required":["id","version","is_active","name","description","instructions","recommended_schedule_cron","created_at","forked_from_id","forked_from_version","nodes","links","input_schema","output_schema","credentials_input_schema"],"title":"Graph","description":"Existing agent graph details, including nodes and links."},"GraphCreateRequest":{"properties":{"name":{"type":"string","maxLength":500,"title":"Name","description":"Graph name"},"description":{"type":"string","maxLength":20000,"title":"Description","description":"Graph description","default":""},"nodes":{"items":{"$ref":"#/components/schemas/GraphNode"},"type":"array","title":"Nodes","description":"List of nodes"},"links":{"items":{"$ref":"#/components/schemas/GraphLink"},"type":"array","title":"Links","description":"Links between nodes"},"is_active":{"type":"boolean","title":"Is Active","description":"Whether this version is active","default":true}},"type":"object","required":["name","nodes","links"],"title":"GraphCreateRequest","description":"Graph model for creating or updating an agent graph."},"GraphLink":{"properties":{"id":{"type":"string","title":"Id"},"source_id":{"type":"string","title":"Source Id","description":"ID of the source node"},"sink_id":{"type":"string","title":"Sink Id","description":"ID of the target node"},"source_name":{"type":"string","title":"Source Name","description":"Output pin name on source node"},"sink_name":{"type":"string","title":"Sink Name","description":"Input pin name on target node"},"is_static":{"type":"boolean","title":"Is Static","description":"Whether this link provides static data","default":false}},"type":"object","required":["id","source_id","sink_id","source_name","sink_name"],"title":"GraphLink","description":"A link between two nodes in a graph."},"GraphMeta":{"properties":{"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Organization the resource belongs to"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Team within the organization; null means organization-wide"},"id":{"type":"string","title":"Id"},"version":{"type":"integer","title":"Version"},"is_active":{"type":"boolean","title":"Is Active"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"recommended_schedule_cron":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Schedule Cron"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"forked_from_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forked From Id"},"forked_from_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Forked From Version"}},"type":"object","required":["id","version","is_active","name","description","instructions","recommended_schedule_cron","created_at","forked_from_id","forked_from_version"],"title":"GraphMeta","description":"Existing agent graph metadata (summary information)."},"GraphNode":{"properties":{"id":{"type":"string","title":"Id"},"block_id":{"type":"string","title":"Block Id","description":"ID of the block type"},"input_default":{"additionalProperties":true,"type":"object","title":"Input Default","description":"Default input values"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Node metadata (e.g., position)"}},"type":"object","required":["id","block_id"],"title":"GraphNode","description":"A node in an agent graph."},"GraphSetActiveVersionRequest":{"properties":{"active_graph_version":{"type":"integer","title":"Active Graph Version","description":"Version number to set as active"}},"type":"object","required":["active_graph_version"],"title":"GraphSetActiveVersionRequest","description":"Request to set the active graph version."},"GraphSettings":{"properties":{"human_in_the_loop_safe_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Human In The Loop Safe Mode","description":"Enable safe mode for human-in-the-loop blocks"}},"type":"object","title":"GraphSettings","description":"Settings for a graph."},"HostScopedCredentialCreateRequest":{"properties":{"provider":{"type":"string","maxLength":100,"title":"Provider","description":"Provider name (e.g., 'github', 'openai')"},"title":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Title","description":"User-friendly name for this credential"},"type":{"type":"string","const":"host_scoped","title":"Type"},"host":{"type":"string","maxLength":2048,"title":"Host","description":"Host pattern to match against request URLs. Supports exact hosts (api.example.com), wildcard subdomains (*.example.com), and optional port (api.example.com:8080)"},"headers":{"additionalProperties":{"type":"string","maxLength":16384},"propertyNames":{"maxLength":100},"type":"object","maxProperties":100,"title":"Headers","description":"Key-value header map to add to matching requests"}},"type":"object","required":["provider","type","host","headers"],"title":"HostScopedCredentialCreateRequest","description":"Request to create a host-scoped credential with custom headers."},"Identity":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"timezone":{"type":"string","title":"Timezone"},"organization":{"$ref":"#/components/schemas/TenantOrganization"},"team":{"anyOf":[{"$ref":"#/components/schemas/TenantTeam"},{"type":"null"}],"description":"Team the request acts in; null means organization-wide"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","description":"Permissions granted to these credentials"},"credential_type":{"type":"string","enum":["api_key","oauth"],"title":"Credential Type"}},"type":"object","required":["user_id","email","timezone","organization","scopes","credential_type"],"title":"Identity","description":"Who the credentials act as, and where."},"InvoiceItem":{"properties":{"id":{"type":"string","title":"Id"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"total_cents":{"type":"integer","title":"Total Cents","description":"Invoice total in cents"},"amount_paid_cents":{"type":"integer","title":"Amount Paid Cents","description":"Amount settled so far in cents"},"currency":{"type":"string","title":"Currency","default":"usd"},"status":{"type":"string","title":"Status"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"hosted_invoice_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosted Invoice Url","description":"Stripe-hosted invoice view URL"},"invoice_pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Pdf Url","description":"Direct PDF download URL"}},"type":"object","required":["id","created_at","total_cents","amount_paid_cents","status"],"title":"InvoiceItem","description":"A Stripe invoice."},"JsonValue":{},"LibraryAgent":{"properties":{"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Organization the resource belongs to"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Team within the organization; null means organization-wide"},"id":{"type":"string","title":"Id"},"graph_id":{"type":"string","title":"Graph Id"},"graph_version":{"type":"integer","title":"Graph Version"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"is_favorite":{"type":"boolean","title":"Is Favorite"},"can_access_graph":{"type":"boolean","title":"Can Access Graph"},"is_latest_version":{"type":"boolean","title":"Is Latest Version"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"creator_name":{"type":"string","title":"Creator Name"},"input_schema":{"additionalProperties":true,"type":"object","title":"Input Schema","description":"Input schema for the agent"},"output_schema":{"additionalProperties":true,"type":"object","title":"Output Schema","description":"Output schema for the agent"},"trigger_setup_info":{"anyOf":[{"$ref":"#/components/schemas/TriggerSetupInfo"},{"type":"null"}],"description":"Trigger configuration requirements; present if the agent has a webhook trigger input"},"recommended_schedule_cron":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Schedule Cron"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id","description":"ID of the folder this agent is in"},"folder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Name","description":"Name of the folder this agent is in"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","graph_id","graph_version","name","description","is_favorite","can_access_graph","is_latest_version","image_url","creator_name","input_schema","output_schema","recommended_schedule_cron","created_at","updated_at"],"title":"LibraryAgent","description":"An agent in the user's library."},"LibraryAgentUpdateRequest":{"properties":{"auto_update_version":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Update Version"},"graph_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Graph Version"},"is_favorite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Favorite"},"is_archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Archived"},"folder_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Folder Id"}},"type":"object","title":"LibraryAgentUpdateRequest","description":"Request to update a library agent."},"LibraryFolder":{"properties":{"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Organization the resource belongs to"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Team within the organization; null means organization-wide"},"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"agent_count":{"type":"integer","title":"Agent Count"},"subfolder_count":{"type":"integer","title":"Subfolder Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","icon","color","parent_id","agent_count","subfolder_count","created_at","updated_at"],"title":"LibraryFolder","description":"A folder for organizing library agents."},"LibraryFolderCreateRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"icon":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string","maxLength":7,"pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}],"title":"Color","description":"Hex color (#RRGGBB)"},"parent_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Parent Id"}},"type":"object","required":["name"],"title":"LibraryFolderCreateRequest","description":"Request to create a folder."},"LibraryFolderMoveRequest":{"properties":{"target_parent_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Target Parent Id","description":"Target parent folder ID (null = root)"}},"type":"object","title":"LibraryFolderMoveRequest","description":"Request to move a folder."},"LibraryFolderTree":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"agent_count":{"type":"integer","title":"Agent Count"},"subfolder_count":{"type":"integer","title":"Subfolder Count"},"children":{"items":{"$ref":"#/components/schemas/LibraryFolderTree"},"type":"array","title":"Children"}},"type":"object","required":["id","name","icon","color","agent_count","subfolder_count","children"],"title":"LibraryFolderTree","description":"Recursive folder tree node."},"LibraryFolderUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"icon":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string","maxLength":7,"pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}],"title":"Color","description":"Hex color (#RRGGBB)"}},"type":"object","title":"LibraryFolderUpdateRequest","description":"Request to update a folder."},"MarketplaceAgent":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"sub_heading":{"type":"string","title":"Sub Heading"},"creator":{"type":"string","title":"Creator"},"creator_avatar":{"type":"string","title":"Creator Avatar"},"runs":{"type":"integer","title":"Runs","description":"Number of times this agent has been run"},"rating":{"type":"number","title":"Rating","description":"Average rating"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"}},"type":"object","required":["slug","name","description","sub_heading","creator","creator_avatar","runs","rating","image_url"],"title":"MarketplaceAgent","description":"An agent available in the marketplace."},"MarketplaceAgentDetails":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"sub_heading":{"type":"string","title":"Sub Heading"},"creator":{"type":"string","title":"Creator"},"creator_avatar":{"type":"string","title":"Creator Avatar"},"runs":{"type":"integer","title":"Runs","description":"Number of times this agent has been run"},"rating":{"type":"number","title":"Rating","description":"Average rating"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"store_listing_version_id":{"type":"string","title":"Store Listing Version Id"},"versions":{"items":{"type":"integer"},"type":"array","title":"Versions","description":"Available store listing versions (sequential; != graph version)"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"image_urls":{"items":{"type":"string"},"type":"array","title":"Image Urls"},"video_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Url"},"agent_output_demo_url":{"type":"string","title":"Agent Output Demo Url"},"recommended_schedule_cron":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Schedule Cron"},"graph_id":{"type":"string","title":"Graph Id"},"graph_versions":{"items":{"type":"integer"},"type":"array","title":"Graph Versions"},"last_updated":{"type":"string","format":"date-time","title":"Last Updated"}},"type":"object","required":["slug","name","description","sub_heading","creator","creator_avatar","runs","rating","image_url","store_listing_version_id","versions","instructions","categories","image_urls","video_url","agent_output_demo_url","recommended_schedule_cron","graph_id","graph_versions","last_updated"],"title":"MarketplaceAgentDetails","description":"Detailed information about a marketplace agent."},"MarketplaceAgentSubmission":{"properties":{"listing_id":{"type":"string","title":"Listing Id"},"listing_version_id":{"type":"string","title":"Listing Version Id"},"listing_version":{"type":"integer","title":"Listing Version"},"graph_id":{"type":"string","title":"Graph Id"},"graph_version":{"type":"integer","title":"Graph Version"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"sub_heading":{"type":"string","title":"Sub Heading"},"description":{"type":"string","title":"Description"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"image_urls":{"items":{"type":"string"},"type":"array","title":"Image Urls"},"video_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Url"},"agent_output_demo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Output Demo Url"},"changes_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changes Summary","description":"Summary of changes in this version"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"submission_status":{"type":"string","enum":["DRAFT","PENDING","APPROVED","REJECTED"],"title":"Submission Status"},"submission_reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submission Reviewed At"},"submission_review_comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submission Review Comments","description":"Comments by the admin who reviewed the submission"},"run_count":{"type":"integer","title":"Run Count"},"user_review_count":{"type":"integer","title":"User Review Count"},"user_review_avg_rating":{"type":"number","title":"User Review Avg Rating"}},"type":"object","required":["listing_id","listing_version_id","listing_version","graph_id","graph_version","slug","name","sub_heading","description","instructions","categories","image_urls","video_url","agent_output_demo_url","changes_summary","submitted_at","submission_status","submission_reviewed_at","submission_review_comments","run_count","user_review_count","user_review_avg_rating"],"title":"MarketplaceAgentSubmission","description":"A marketplace submission."},"MarketplaceAgentSubmissionCreateRequest":{"properties":{"graph_id":{"type":"string","maxLength":100,"title":"Graph Id","description":"ID of the graph to submit"},"graph_version":{"type":"integer","title":"Graph Version","description":"Version of the graph to submit"},"name":{"type":"string","maxLength":100,"title":"Name","description":"Display name for the agent"},"slug":{"type":"string","maxLength":100,"title":"Slug","description":"URL-friendly identifier"},"description":{"type":"string","maxLength":2000,"title":"Description","description":"Full description"},"sub_heading":{"type":"string","maxLength":100,"title":"Sub Heading","description":"Short tagline"},"image_urls":{"items":{"type":"string","maxLength":2048},"type":"array","maxItems":100,"title":"Image Urls"},"video_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Video Url"},"agent_output_demo_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Agent Output Demo Url"},"categories":{"items":{"type":"string","maxLength":100},"type":"array","maxItems":100,"title":"Categories"},"instructions":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Instructions","description":"Usage instructions"},"changes_summary":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Changes Summary","description":"Summary of changes","default":"Initial Submission"},"recommended_schedule_cron":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Recommended Schedule Cron","description":"Recommended cron schedule"}},"type":"object","required":["graph_id","graph_version","name","slug","description","sub_heading"],"title":"MarketplaceAgentSubmissionCreateRequest","description":"Request to create a marketplace submission."},"MarketplaceAgentSubmissionEditRequest":{"properties":{"name":{"type":"string","maxLength":100,"title":"Name","description":"Agent display name"},"sub_heading":{"type":"string","maxLength":100,"title":"Sub Heading","description":"Short tagline"},"description":{"type":"string","maxLength":2000,"title":"Description","description":"Full description"},"image_urls":{"items":{"type":"string","maxLength":2048},"type":"array","maxItems":100,"title":"Image Urls","description":"Image URLs"},"video_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Video Url","description":"Demo video URL"},"agent_output_demo_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Agent Output Demo Url","description":"Agent output demo URL"},"categories":{"items":{"type":"string","maxLength":100},"type":"array","maxItems":100,"title":"Categories","description":"Categories"},"changes_summary":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Changes Summary","description":"Summary of changes","default":"Update submission"},"recommended_schedule_cron":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Recommended Schedule Cron","description":"Recommended cron schedule"},"instructions":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Instructions","description":"Usage instructions"}},"type":"object","required":["name","sub_heading","description","image_urls","categories"],"title":"MarketplaceAgentSubmissionEditRequest","description":"The full replacement listing for a submission.\n\nEvery field is written, so this is the whole listing, not a patch: the\ndefaulted fields blanked a listing's description, images and categories for\nany caller that sent only the field it meant to change."},"MarketplaceCreatorDetails":{"properties":{"name":{"type":"string","title":"Name"},"username":{"type":"string","title":"Username"},"description":{"type":"string","title":"Description"},"links":{"items":{"type":"string"},"type":"array","title":"Links"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"is_featured":{"type":"boolean","title":"Is Featured"},"num_agents":{"type":"integer","title":"Num Agents"},"agent_runs":{"type":"integer","title":"Agent Runs"},"agent_rating":{"type":"number","title":"Agent Rating"},"top_categories":{"items":{"type":"string"},"type":"array","title":"Top Categories"}},"type":"object","required":["name","username","description","links","avatar_url","is_featured","num_agents","agent_runs","agent_rating","top_categories"],"title":"MarketplaceCreatorDetails","description":"Profile + stats for a creator on the marketplace."},"MarketplaceMediaUploadResponse":{"properties":{"url":{"type":"string","title":"Url","description":"Public URL of the uploaded media"}},"type":"object","required":["url"],"title":"MarketplaceMediaUploadResponse","description":"Response after uploading media."},"MarketplaceSearchResult":{"properties":{"content_type":{"$ref":"#/components/schemas/SearchContentType"},"content_id":{"type":"string","title":"Content Id"},"searchable_text":{"type":"string","title":"Searchable Text"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"combined_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Combined Score"}},"type":"object","required":["content_type","content_id","searchable_text","metadata","updated_at","combined_score"],"title":"MarketplaceSearchResult","description":"A single search result from marketplace search."},"MarketplaceUserProfile":{"properties":{"name":{"type":"string","title":"Name"},"username":{"type":"string","title":"Username"},"description":{"type":"string","title":"Description"},"links":{"items":{"type":"string"},"type":"array","title":"Links"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"is_featured":{"type":"boolean","title":"Is Featured"}},"type":"object","required":["name","username","description","links","avatar_url","is_featured"],"title":"MarketplaceUserProfile","description":"User's marketplace profile."},"MarketplaceUserProfileUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Name","description":"Display name"},"username":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Username","description":"Unique username"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description","description":"Bio/description"},"links":{"anyOf":[{"items":{"type":"string","maxLength":2048},"type":"array","maxItems":100},{"type":"null"}],"title":"Links","description":"Profile links"},"avatar_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Avatar Url","description":"Avatar image URL"}},"type":"object","title":"MarketplaceUserProfileUpdateRequest","description":"Request to partially update marketplace profile."},"Page_AgentGraphRun_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentGraphRun"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[AgentGraphRun]"},"Page_AgentPreset_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentPreset"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[AgentPreset]"},"Page_AgentRunReview_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentRunReview"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[AgentRunReview]"},"Page_AgentRunSchedule_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentRunSchedule"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[AgentRunSchedule]"},"Page_BlockInfo_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BlockInfo"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[BlockInfo]"},"Page_CredentialInfo_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CredentialInfo"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[CredentialInfo]"},"Page_CredentialRequirement_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CredentialRequirement"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[CredentialRequirement]"},"Page_CreditTransaction_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CreditTransaction"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[CreditTransaction]"},"Page_GraphMeta_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GraphMeta"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[GraphMeta]"},"Page_Graph_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Graph"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[Graph]"},"Page_InvoiceItem_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/InvoiceItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[InvoiceItem]"},"Page_LibraryAgent_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LibraryAgent"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[LibraryAgent]"},"Page_LibraryFolderTree_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LibraryFolderTree"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[LibraryFolderTree]"},"Page_LibraryFolder_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LibraryFolder"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[LibraryFolder]"},"Page_MarketplaceAgentSubmission_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MarketplaceAgentSubmission"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[MarketplaceAgentSubmission]"},"Page_MarketplaceAgent_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MarketplaceAgent"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[MarketplaceAgent]"},"Page_MarketplaceCreatorDetails_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MarketplaceCreatorDetails"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[MarketplaceCreatorDetails]"},"Page_MarketplaceSearchResult_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MarketplaceSearchResult"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[MarketplaceSearchResult]"},"Page_WorkspaceFileInfo_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WorkspaceFileInfo"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` to fetch the next page. `null` on the last page."},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count","description":"Items matching the request across all pages, or `null` where the underlying source cannot report one. Always present."}},"type":"object","required":["items","next_cursor","total_count"],"title":"Page[WorkspaceFileInfo]"},"SearchContentType":{"type":"string","enum":["STORE_AGENT","BLOCK","INTEGRATION","DOCUMENTATION","LIBRARY_AGENT","WORKSPACE_FILE"],"title":"SearchContentType","description":"What a v2 caller may search over.\n\nChat sessions are searchable internally but have no v2 surface and no scope\nthat could grant them, so they are not a value this API accepts."},"SubscriptionStatus":{"properties":{"tier":{"type":"string","enum":["NO_TIER","TRIAL","BASIC","PRO","MAX","BUSINESS","ENTERPRISE"],"title":"Tier"},"monthly_cost_cents":{"type":"integer","title":"Monthly Cost Cents","description":"Current plan cost in cents"},"tier_costs_cents":{"additionalProperties":{"type":"integer"},"type":"object","title":"Tier Costs Cents","description":"Available tier → monthly cost in cents"},"tier_costs_yearly_cents":{"additionalProperties":{"type":"integer"},"type":"object","title":"Tier Costs Yearly Cents","description":"Available tier → yearly cost in cents"},"billing_cycle":{"type":"string","enum":["monthly","yearly"],"title":"Billing Cycle","default":"monthly"},"tier_multipliers":{"additionalProperties":{"type":"number"},"type":"object","title":"Tier Multipliers","description":"Tier → rate-limit multiplier"},"proration_credit_cents":{"type":"integer","title":"Proration Credit Cents","description":"Unused portion of current plan available as upgrade credit"},"has_active_stripe_subscription":{"type":"boolean","title":"Has Active Stripe Subscription","default":false},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End","description":"End of the current billing period"},"pending_tier":{"anyOf":[{"type":"string","enum":["NO_TIER","TRIAL","BASIC","PRO","MAX","BUSINESS","ENTERPRISE"]},{"type":"null"}],"title":"Pending Tier"},"pending_tier_effective_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pending Tier Effective At"},"pending_billing_cycle":{"anyOf":[{"type":"string","enum":["monthly","yearly"]},{"type":"null"}],"title":"Pending Billing Cycle"}},"type":"object","required":["tier","monthly_cost_cents","tier_costs_cents","proration_credit_cents"],"title":"SubscriptionStatus","description":"Current subscription status and tier pricing."},"TenantOrganization":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"is_personal":{"type":"boolean","title":"Is Personal","description":"Whether this is the caller's own single-member organization"}},"type":"object","required":["id","name","is_personal"],"title":"TenantOrganization","description":"The organization a request acts in."},"TenantTeam":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"TenantTeam","description":"The team a request acts in, within its organization."},"TopAutomationCostRun":{"properties":{"run_id":{"type":"string","title":"Run Id"},"graph_id":{"type":"string","title":"Graph Id"},"cost_cents":{"type":"integer","title":"Cost Cents"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"status":{"type":"string","title":"Status"},"duration_seconds":{"type":"number","title":"Duration Seconds"},"node_error_count":{"type":"integer","title":"Node Error Count"}},"type":"object","required":["run_id","graph_id","cost_cents","started_at","status","duration_seconds","node_error_count"],"title":"TopAutomationCostRun","description":"A high-cost run by automation credit spend."},"TriggerSetupInfo":{"properties":{"provider":{"type":"string","title":"Provider","description":"Trigger provider (e.g. 'github')"},"config_schema":{"additionalProperties":true,"type":"object","title":"Config Schema","description":"JSON Schema for the trigger block's input"},"credentials_input_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentials Input Name","description":"Name of the credentials input field, if the trigger requires credentials"}},"type":"object","required":["provider","config_schema","credentials_input_name"],"title":"TriggerSetupInfo","description":"Trigger configuration requirements for agents that support webhook triggers.\n\nUse `config_schema` and `credentials_input_name` to populate the\n`trigger_config` and `agent_credentials` fields when calling\n``POST /library/presets/setup-trigger``."},"UploadWorkspaceFileResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"path":{"type":"string","title":"Path"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"type":"integer","title":"Size Bytes","description":"File size in bytes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"file_uri":{"type":"string","title":"File Uri","description":"URI to reference the uploaded file in agent file inputs"}},"type":"object","required":["id","name","path","mime_type","size_bytes","created_at","updated_at","file_uri"],"title":"UploadWorkspaceFileResponse","description":"Response after uploading a file to the user's workspace."},"UserPasswordCredentialCreateRequest":{"properties":{"provider":{"type":"string","maxLength":100,"title":"Provider","description":"Provider name (e.g., 'github', 'openai')"},"title":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Title","description":"User-friendly name for this credential"},"type":{"type":"string","const":"user_password","title":"Type"},"username":{"type":"string","maxLength":100,"title":"Username"},"password":{"type":"string","maxLength":16384,"title":"Password"},"scope":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Scope","description":"What this login may be used for, as a URI: smtp://host[:port] for smtp, postgresql:// mysql:// or mssql:// host[:port] for database; required for those providers"}},"type":"object","required":["provider","type","username","password"],"title":"UserPasswordCredentialCreateRequest","description":"Request to create a username/password credential."},"WorkspaceFileInfo":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"path":{"type":"string","title":"Path"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"type":"integer","title":"Size Bytes","description":"File size in bytes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","path","mime_type","size_bytes","created_at","updated_at"],"title":"WorkspaceFileInfo","description":"Metadata for a file in the user's workspace."}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"},"HTTPBearer":{"type":"http","scheme":"bearer"}}},"tags":[{"name":"graphs","description":"Create, update, and manage agent graphs","x-page-title":"Graphs"},{"name":"schedules","description":"Manage scheduled graph executions","x-page-title":"Schedules"},{"name":"blocks","description":"Discover available building blocks","x-page-title":"Blocks"},{"name":"search","description":"Cross-domain hybrid search across agents, blocks, and docs","x-page-title":"Search"},{"name":"marketplace","description":"Browse agents and creators, manage submissions","x-page-title":"Marketplace"},{"name":"library","description":"Manage your agent library, run agents, organize with folders","x-page-title":"Library"},{"name":"presets","description":"Saved run inputs for agents, and webhook triggers that run them","x-page-title":"Presets"},{"name":"runs","description":"Monitor, stop, delete, and share agent runs; manage human-in-the-loop reviews","x-page-title":"Runs"},{"name":"credits","description":"Check balance and view transaction history","x-page-title":"Credits"},{"name":"integrations","description":"List, create, and delete integration credentials","x-page-title":"Integrations"},{"name":"files","description":"Upload, list, download, and delete workspace files","x-page-title":"Files"},{"name":"identity","description":"Who the credentials act as, and in which organization and team","x-page-title":"Identity"}],"x-enable-proxy":true}