API

ModelSubscriptionAccount

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/model_subscription_accounts create Your personal model subscription accounts
GET /api/v1/model_subscription_accounts list Your personal model subscription accounts
PATCH /api/v1/model_subscription_accounts/{id} patch Your personal model subscription accounts
DELETE /api/v1/model_subscription_accounts/{id} remove Your personal model subscription accounts
PUT /api/v1/model_subscription_accounts/{id} update Success

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

model_subscription_accounts, err := client.ModelSubscriptionAccount(nil).List(nil, nil)
if err != nil {
    panic(err)
}
fmt.Println(model_subscription_accounts)
created, err := client.ModelSubscriptionAccount(nil).Create(map[string]any{"label": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.ModelSubscriptionAccount(nil).Update(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
patched, err := client.ModelSubscriptionAccount(nil).Patch(map[string]any{"id": "example_id", "label": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(patched)
removed, err := client.ModelSubscriptionAccount(nil).Remove(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

Construct client as shown in the Lua setup, then call the operations:

local model_subscription_accounts, err = client:ModelSubscriptionAccount():list()
local created, err = client:ModelSubscriptionAccount():create({ label = "example" })
local updated, err = client:ModelSubscriptionAccount():update({ id = "example_id" })
local patched, err = client:ModelSubscriptionAccount():patch({ id = "example_id", label = "example" })
local removed, err = client:ModelSubscriptionAccount():remove({ id = "example_id" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$model_subscription_accounts = $client->ModelSubscriptionAccount()->list();
$created = $client->ModelSubscriptionAccount()->create(["label" => "example"]);
$updated = $client->ModelSubscriptionAccount()->update(["id" => "example_id"]);
$patched = $client->ModelSubscriptionAccount()->patch(["id" => "example_id", "label" => "example"]);
$client->ModelSubscriptionAccount()->remove(["id" => "example_id"]);

Python

Construct client as shown in the Python setup, then call the operations:

model_subscription_accounts = client.ModelSubscriptionAccount().list()
created = client.ModelSubscriptionAccount().create({ "label": "example" })
updated = client.ModelSubscriptionAccount().update({"id": "example_id"})
patched = client.ModelSubscriptionAccount().patch({"id": "example_id", "label": "example"})
client.ModelSubscriptionAccount().remove({"id": "example_id"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

model_subscription_accounts = client.ModelSubscriptionAccount.list()
created = client.ModelSubscriptionAccount.create({ "label" => "example" })
updated = client.ModelSubscriptionAccount.update({ "id" => "example_id" })
patched = client.ModelSubscriptionAccount.patch({ "id" => "example_id", "label" => "example" })
client.ModelSubscriptionAccount.remove({ "id" => "example_id" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const model_subscription_accounts = await client.ModelSubscriptionAccount().list()
const created = await client.ModelSubscriptionAccount().create({ label: "example" })
const updated = await client.ModelSubscriptionAccount().update({ id: "example_id" })
const patched = await client.ModelSubscriptionAccount().patch({ id: "example_id", label: "example" })
await client.ModelSubscriptionAccount().remove({ id: "example_id" })

Fields

Field Type Required Description
accounts array Yes Accounts
agents array Yes Agents
can_disconnect boolean Yes Can Disconnect
connection_agent one,object,null Yes Connection Agent
email string No Email
id string Yes Id
label string Yes Label
provider string Yes Provider
saved boolean Yes Saved
status string Yes Status
usable boolean Yes Usable

create

POST /api/v1/model_subscription_accounts

Operation ID: modelSubscriptionAccountsPost.

Authentication: bearer token (bearerAuth).

Request body

application/json

The request body is object or object.

Responses

200: Your personal model subscription accounts

application/json

Property Type Required Description
accounts array of object Yes
accounts[].agents array of object Yes
accounts[].agents[].id string Yes
accounts[].agents[].name string Yes
accounts[].agents[].organization string Yes
accounts[].can_disconnect boolean Yes
accounts[].email string No
accounts[].id string Yes
accounts[].label string Yes
accounts[].provider enum: anthropic, openai, xai Yes
accounts[].saved boolean Yes
accounts[].status string Yes
accounts[].usable boolean Yes
connection_agent object Yes
connection_agent.id string Yes
connection_agent.organization_id string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

list

GET /api/v1/model_subscription_accounts

Operation ID: modelSubscriptionAccountsGet.

Authentication: bearer token (bearerAuth).

Responses

200: Your personal model subscription accounts

application/json

Property Type Required Description
accounts array of object Yes
accounts[].agents array of object Yes
accounts[].agents[].id string Yes
accounts[].agents[].name string Yes
accounts[].agents[].organization string Yes
accounts[].can_disconnect boolean Yes
accounts[].email string No
accounts[].id string Yes
accounts[].label string Yes
accounts[].provider enum: anthropic, openai, xai Yes
accounts[].saved boolean Yes
accounts[].status string Yes
accounts[].usable boolean Yes
connection_agent object Yes
connection_agent.id string Yes
connection_agent.organization_id string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

patch

PATCH /api/v1/model_subscription_accounts/{id}

Operation ID: modelSubscriptionAccountPatch.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Request body

application/json

Property Type Required Description
label string Yes

Responses

200: Your personal model subscription accounts

application/json

Property Type Required Description
accounts array of object Yes
accounts[].agents array of object Yes
accounts[].agents[].id string Yes
accounts[].agents[].name string Yes
accounts[].agents[].organization string Yes
accounts[].can_disconnect boolean Yes
accounts[].email string No
accounts[].id string Yes
accounts[].label string Yes
accounts[].provider enum: anthropic, openai, xai Yes
accounts[].saved boolean Yes
accounts[].status string Yes
accounts[].usable boolean Yes
connection_agent object Yes
connection_agent.id string Yes
connection_agent.organization_id string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

remove

DELETE /api/v1/model_subscription_accounts/{id}

Operation ID: modelSubscriptionAccountDelete.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Responses

200: Your personal model subscription accounts

application/json

Property Type Required Description
accounts array of object Yes
accounts[].agents array of object Yes
accounts[].agents[].id string Yes
accounts[].agents[].name string Yes
accounts[].agents[].organization string Yes
accounts[].can_disconnect boolean Yes
accounts[].email string No
accounts[].id string Yes
accounts[].label string Yes
accounts[].provider enum: anthropic, openai, xai Yes
accounts[].saved boolean Yes
accounts[].status string Yes
accounts[].usable boolean Yes
connection_agent object Yes
connection_agent.id string Yes
connection_agent.organization_id string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

update

PUT /api/v1/model_subscription_accounts/{id}

Operation ID: put_api_v1_model_subscription_accounts_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway