Make HTTP requests to your API surface endpoints to invoke capabilities programmatically from any application.
API Surface endpoints follow this pattern:
The {capabilitySlug} is generated from the Capability name. For example, Summarize Article becomes summarize-article. Find your specific URLs in the API Surface’s Endpoints or Ship tab.
Send a POST request with your input data:
The request body accepts these fields:
Successful responses return JSON:
For real-time output, enable streaming:
Streaming responses use Server-Sent Events (SSE):
Errors return appropriate HTTP status codes:
400 Bad Request:
401 Unauthorized:
404 Not Found:
500 Internal Server Error:
Use the executionId to debug failures in execution logs.
API Surfaces enforce rate limits that can be configured per API key. You can set per-minute and per-day limits when creating keys in the Keys tab of your API Surface.