---
title: "Create a one-hour browser integration session"
method: POST
path: "/api/session"
tags: ["Team"]
---

# Create a one-hour browser integration session

`POST /api/session`

## Request

- Base URL: `https://sim.animahealth.com`
- URL: `https://sim.animahealth.com/api/session`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Send a bearer token. Sets HttpOnly sim_session cookie for /browser/legacy. Cookie sessions are process-local and expire after one hour; the legacy form supplies its own CSRF field.

## Request body

- object

## Response `200`

Success

- object
  - `ok` boolean, required

## Other responses

- `400`: Invalid input or unsupported workflow
- `401`: Missing or invalid credentials
- `403`: Scope, origin or operator restriction
- `404`: Unknown resource
- `409`: Stale version, invalid transition or unavailable capacity
- `413`: Request exceeds this operation's body-size limit
- `429`: Deployment has reached its 5,000-team capacity
- `500`: Internal simulation error

---

[API](https://skmtc.dev/animahealth/apis/nhs-sim-api.md) - [All operations](https://skmtc.dev/animahealth/apis/nhs-sim-api/llms.txt) - [OpenAPI document](https://skmtc.dev/animahealth/apis/nhs-sim-api/revisions/c7803d7a3e58?raw)
