Integrations

Run one AG Studio agent turn on PayPilot's LLM

POST
/api/v1/integrations/studio/ai/turn

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.

Formatuuid

Header 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<>
Itemsitems <= 200
instructions?|
Lengthlength <= 120000
model?|null
response_format?
tool_choice?string|
tools?array<>
Itemsitems <= 80

Response 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}