---
title: "Authorize Session"
method: POST
path: "/api/v1/authorize/session"
tags: ["User"]
---

# Authorize Session

`POST /api/v1/authorize/session`

Authorize a session key via delegation

## Request body

- SessionAuthRequest — A request to authenticate using a Session Key.
  - `delegation` SessionDelegation, required — A delegation of authority from a Root Key to a Session Key.
    - `expires_at` integer, required
    - `root_public_key` string, required
    - `root_signature` string, required
    - `scopes` Scope[], required
    - `session_public_key` string, required
  - `nonce` string, required
  - `session_signature` string, required
  - `timestamp_ms` integer, required

## Response `200`

Successfully authorized and token generated

- AuthorizeResponse
  - `token` string, required
  - `user_id` string, uuid, required

---

[API](https://skmtc.net/ekidenfi/apis/ekiden-gateway.md) · [All operations](https://skmtc.net/ekidenfi/apis/ekiden-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ekidenfi/ekiden-gateway/versions/75ffe546b73a/schema)
