---
title: "POST /nango/session"
method: POST
path: "/nango/session"
tags: ["Nango"]
---

# POST /nango/session

`POST /nango/session`

## Request body

- CreateNangoSessionRequest — Request body for creating a Nango session with optional scope selection
  - `connector_auth_method_id` string, uuid, required
  - `selected_scope_ids` ConnectorAuthMethodScopeId[], nullable — Specific scope IDs to use. If not provided, defaults to required + recommended scopes. If the auth method has no scopes in the database, Nango's default scopes are used.

## Response `200`

Nango connect session created successfully

- object — A Nango connect session for the frontend SDK
  - `expires_at` string, date-time, required
  - `token` string, required

## Other responses

- `400` — Bad request - auth method not found or not OAuth
- `500` — Failed to create Nango session

---

[API](https://skmtc.net/structifyai/apis/structify.md) · [All operations](https://skmtc.net/structifyai/apis/structify/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/structifyai/structify/versions/1364930b6980/schema)
