Skip to main content
POST
/
environments
/
{env_name}
/
async_run_remote
Asynchronously call a named environment of a chain.
curl --request POST \
  --url https://model-{model_id}.api.baseten.co/environments/{env_name}/async_run_remote \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "request_id": "<string>"
}

Authorizations

Authorization
string
header
required

Pass your Baseten API key. Clients automatically send Authorization: Bearer <key>. Direct callers can also use Authorization: Api-Key <key>; both schemes are accepted.

Path Parameters

env_name
string
required

The name of the environment (e.g. production, staging).

Body

application/json

JSON input matching the chain's run_remote method signature.

Response

Async run remote request enqueued.

request_id
string
required

The ID of the async request.