---
title: "Create Client Session"
method: POST
path: "/api/client-sessions"
tags: ["Client Sessions"]
---

# Create Client Session

`POST /api/client-sessions`

Create Client Session Token for later use in embedded auth components - eg. via @onlyfansapi/auth npm package.

## Request body

- object
  - `display_name` string, required — Display Name of the account visible in your OnlyFansAPI Console Dashboard.
  - `client_reference_id` string — Your Internal Reference ID for the connected account.
  - `proxy_country` 'us' | 'uk', nullable

## Response `200`

Success

- object
  - `data` object
    - `token` string
    - `display_name` string
    - `client_reference_id` string
  - `_meta` object
    - `_credits` object
      - `used` integer
      - `balance` integer
      - `note` string
    - `_cache` object
      - `is_cached` boolean
      - `note` string
    - `_rate_limits` object
      - `limit_minute` integer
      - `limit_day` integer
      - `remaining_minute` integer
      - `remaining_day` integer

---

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