Skip to main content
POST
/
v1
/
loops
/
sessions
cURL
curl --request POST \
--url https://api.baseten.co/v1/loops/sessions \
--header "Authorization: Bearer $BASETEN_API_KEY" \
--data '{
  "training_project_id": null
}'
{
  "session": {
    "id": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.baseten.co/llms.txt

Use this file to discover all available pages before exploring further.

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.

Body

application/json
training_project_id
string | null

ID of the training project to associate with. If omitted, a default project is created for the org.

Response

200 - application/json
session
LoopsSessionV1 · object
required