Choose a mode
Create an Endpoint from the target’s publication area. Set its slug, mode, schemas, authentication, timeout and payload limit. Review Readiness before publishing and resolve missing targets or capabilities. Do not use job-only Teams or Workflows as conversation targets.
Publish and authenticate
A Draft is not a live invocation entry. Publish creates a usable release. Withapi_key authentication, create a credential and send X-API-Key. With platform authentication, send Authorization: Bearer. These credential types are not interchangeable.
Store keys in your application backend’s secret configuration. Give callers separate credentials with appropriate expiry, rotation and revocation. Browser code should call your backend rather than embed a long-lived key.
Submit a job
Copy the generated example from Endpoint details. This example assumes slugreport and an input schema permitting request; use your published schema:
Set BASE_URL to the Gateway’s public origin, such as https://agentscope.example.com without a trailing slash, and ENDPOINT_TOKEN to the credential for this Endpoint.
invocationId, status, statusUrl and eventsUrl. Follow the returned URLs instead of inventing internal Run paths:
STATUS_PATH and EVENTS_PATH to returned relative URLs. Use absolute returned URLs directly without prepending BASE_URL. Read invocation.result according to the Endpoint’s output schema.
Continue a conversation
Submit{"message":"Describe your responsibilities"} initially and save conversationId. Send later turns to /invoke/v1/conversations/{conversationId}/turns with a message and a new Idempotency-Key. Subscribe using that turn’s returned eventsUrl, retaining its invocationId query parameter.