---
search:
  tags:
    - End users
    - POST
seo:
  description: >-
    A short-lived token your server hands to your own front end, so… Reference
    for the POST /api/v2/end-users/{endUserId}/sessions endpoint in the Anlyon
    API.
sidebar:
  label: Create an end-user session
  badge: POST
title: Create an end-user session
type: openapi-operation
---
A short-lived token your server hands to your own front end, so prebuilt components (`@anlyonhq/react`) can act for this one end user in the browser. The token lists, connects and disconnects the end user's accounts and, when this key also has `end-users:approvals`, lists and decides their own approvals, through `/api/v2/end-user-session`. Nothing else: no action call, secret or other end user, and it cannot confirm a connection. Lasts 15 minutes by default, 60 seconds to 1 hour on request, and never past this key's own expiry. Revoking this key ends its sessions. API keys only: a console session or an OAuth token answers `403 END_USER_SESSION_API_KEY_REQUIRED`. Recorded as `end_user.session_created`.

`POST /api/v2/end-users/{endUserId}/sessions`
