---
title: "Create auth token for user"
method: POST
path: "/v1/publishers/auth/s2s"
tags: ["Server-Side"]
---

# Create auth token for user

`POST /v1/publishers/auth/s2s`

This endpoint is used to authenticate a user using an publisher user id. The access
token is validated and a new authentication token is returned. This token can be used to authenticate the user
in the future.

## Request body

- CreateAuthTokenS2SBody
  - `user_id` string, required

## Response `200`

OK

- object
  - `data` AuthTokenResponse
    - `access_token` string, required
    - `refresh_token` string, required

---

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