AppAIGatewayDocs
API referenceAdmin change operations

Get where an operation stands

GET
/v1/admin/operations/{id}

Any credential of the account that opened the operation may read it, whatever its role and grant; any other is answered 404 operation_not_found, so the answer never says whether the id exists elsewhere. A pending operation reports when it lapses, a completed one what it changed, and one declined in a browser expired with denied: true. It never returns a secret and never collects one: a key the operation created is revealed only on the page reveal_url names, to a person signed in to the console as an owner or admin. The approval link of a pending browser step is in the answer that opened it and nowhere else.

Authorization

agw_identity_auth.session_token<token>

The console's session cookie. Admin requests from the console also send x-console-request: 1.

In: cookie

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/admin/operations/string"
{  "id": "string",  "kind": "string",  "state": "pending",  "denied": true,  "createdAt": "string",  "expiresAt": "string",  "result": {    "accountId": "string",    "app": {      "revision": 1,      "id": "string",      "name": "string",      "config": {        "authentication": {          "type": "apple_app_attest",          "end_user": {            "source": "issuer",            "issuer": {              "jwks_url": "http://example.com",              "issuer": "string",              "audience": "string",              "user_id_claim": "string",              "token_header": "string",              "required_claims": [                {                  "path": "string",                  "contains": "string",                  "equals": "string"                }              ],              "max_token_lifetime_seconds": 1,              "provider": "firebase",              "entitlement": "revenuecat"            }          },          "app_attest": {            "team_id": "string",            "bundle_id": "string",            "environments": [              "production"            ]          }        },        "routing": {          "providers": {            "mode": "all"          },          "model_rewrites": {            "property1": "string",            "property2": "string"          }        },        "limits": {},        "endpoints": {}      },      "status": "active",      "created_at": "string",      "updated_at": "string"    },    "api_key": {      "id": "string",      "name": "string",      "key_prefix": "string",      "created_at": "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        }      },      "route": "direct",      "capability": {        "apiStyles": [          "responses"        ],        "endpointStyles": [          "responses"        ],        "modelPrefix": "string",        "paths": "provider"      },      "revision": 1,      "status": "active",      "createdAt": "string",      "createdBy": "string"    },    "gateway": {      "id": "string",      "name": "string",      "secretHint": "string",      "providerCount": 0,      "referencedCount": 0,      "revision": 1,      "status": "active",      "createdAt": "string",      "updatedAt": "string",      "createdBy": "string",      "type": "cf_aig",      "config": {        "accountId": "string",        "gatewayId": "string"      }    }  },  "reveal_url": "http://example.com"}