---
title: "Authenticate Legal Entity"
method: POST
path: "/accounts/auth"
---

# Authenticate Legal Entity

`POST /accounts/auth`

Provides a short-lived authentication token scoped to the requested legal entity. Tokens must be included as an Authorization header for all API requests on behalf of the legal entity. They are valid for 10 minutes. Your API key will be provided to you by Mosey.

## Query parameters

- `verbose` boolean

## Headers

- `authorization` string, nullable

## Request body

- PlatformAuthenticateRequest
  - `legal_entity_id` string, required

## Response `200`

Successful Response

- AuthSessionResponse
  - `access_token` string, required
  - `token_type` 'bearer'
  - `state` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mosey/apis/mosey-api.md) · [All operations](https://skmtc.net/mosey/apis/mosey-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mosey/mosey-api/revisions/2121b0e65643/schema)
