---
title: "Create Account Login Session"
method: POST
path: "/logins/{legal_entity_account_login_public_id}/sessions"
---

# Create Account Login Session

`POST /logins/{legal_entity_account_login_public_id}/sessions`

## Request

- Base URL: `https://docs.mosey.com` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.mosey.com/logins/{legal_entity_account_login_public_id}/sessions`
- Auth: one of:
  - OAuth 2
    - Password
    - Token URL: `/api/token`
  - OAuth 2
    - Password
    - Token URL: `/api/token`

Returns the url the end-user should follow to retrieve the Account Login secrets and data

## Path parameters

- `legal_entity_account_login_public_id` string, required

## Request body

- LoginsSessionRequest
  - `callback_url` string, required

## Response `200`

Successful Response

- PlatformLegalEntityAccountLoginSessionResponse
  - `created_at` string, required: This is the time the `url` became accessible
  - `expires_at` string, required: This is the time after which the `url` will no longer accessible
  - `url` string, required: A temporary link the user must follow if they want to access the Login information (including passwords and user names)

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mosey/apis/mosey-api.md) - [All operations](https://skmtc.dev/mosey/apis/mosey-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mosey/apis/mosey-api/revisions/2121b0e65643?raw)
