Get Gorgias AI Agent Setup Values
POST/api/integrations/gorgias/:gorgiasInstance/manual-steps
Returns the copy-ready values for every Gorgias AI Agent action and Flow step SKU.io supports (ai_action_status, ai_action_cancel, ai_action_hold, ai_action_address, ai_action_reship, ai_action_return, ai_action_refund, ai_action_stock, flow_order_status, flow_request_cancel) plus the mcp_prompt text, with the full shared secret in manual.headers. It is a POST that needs write access on purpose: Get Gorgias Connection only shows the secret's last 4 characters.
integrations:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
The write actions send "via": "ai_agent" (or "flow"). For those callers the order endpoints answer 422 whenever nothing was done (outcomes refused, not_allowed, not_found, needs_human, failed, error, not_held, ambiguous_order; a cancel held_for_review stays 200 because the order is on hold for a teammate), so Gorgias takes the action's error branch instead of telling the customer it worked. A hold on a Shopify order also places a Shopify fulfillment hold (step hold_channel), and releasing it removes that hold (step release_channel).
Requires gorgias.manage.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Validation failed — the body is a field → messages map (Laravel shape) or the platform envelope with a stable machine-readable code. Fix the payload and resubmit.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.