AppAIGatewayDocs

Poll a browser handoff

GET
/v1/cli/operations/{id}

Only the original polling proof can recover the result. Completed claims report the account they landed on; the CLI keeps the access it already had. Provider secrets are never returned.

Authorization

CliPollProof
AuthorizationBearer <token>

The initiating CLI's private pollToken, distinct from the browser submission proof.

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/cli/operations/string"
{  "id": "string",  "expiresAt": "string",  "deployment": {    "id": "string",    "mode": "cloud",    "apiUrl": "http://example.com",    "consoleOrigin": "http://example.com"  },  "state": "pending",  "result": {    "accountId": "string",    "provider": {      "id": "string",      "type": "openai",      "slug": "string",      "name": "string",      "secretHint": "string",      "providerGatewayId": "string",      "gatewayRoute": {        "modelPrefix": "string",        "providerOnly": [          "string"        ]      },      "baseUrl": "string",      "pricing": {        "property1": {          "input": 0,          "output": 0        },        "property2": {          "input": 0,          "output": 0        }      },      "status": "active",      "createdAt": "string",      "createdBy": "string"    },    "gateway": {      "id": "string",      "name": "string",      "secretHint": "string",      "providerCount": 0,      "referencedCount": 0,      "status": "active",      "createdAt": "string",      "updatedAt": "string",      "createdBy": "string",      "type": "cf_aig",      "config": {        "accountId": "string",        "gatewayId": "string"      }    }  },  "account": {    "id": "string",    "name": "string",    "createdAt": "string",    "claimed": true,    "expiresAt": "string"  }}