Integrations
Run one AG Studio agent turn on PayPilot's LLM
Relay one AgLlmAdapter.executeTurn. Studio's tools run in the browser against the
dashboard only; this endpoint holds the model key and returns the model's output.
Authorization
HTTPBearer AuthorizationBearer <token>
JWT access token
In: header
Query Parameters
merchant_id?|
Optional merchant to act on. Must be one you are a member of.
Format
uuidHeader Parameters
X-Merchant-ID?string|null
Request Body
application/json
One AgLlmRequest from Studio's adapter. Item shapes are Studio's; validated loosely here
and strictly where they are read.
input?array<>
Items
items <= 200instructions?|
Length
length <= 120000model?|null
response_format?
tool_choice?string|
tools?array<>
Items
items <= 80Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/integrations/studio/ai/turn" \ -H "Content-Type: application/json" \ -d '{}'{ "data": {}, "meta": {}, "success": true}