---
title: "Authenticate and obtain a bearer token"
method: POST
path: "/v1/auth"
tags: ["auth"]
---

# Authenticate and obtain a bearer token

`POST /v1/auth`

Exchange your API key and a userId for a JWT bearer token.

## Request body

- object
  - `userId` string, required — Identifier of the user the token is issued for. Must be a non-empty string.

## Response `200`

Authentication successful

- object
  - `data` object
    - `logMeWith` object
      - `partner` object
        - `token` string — JWT bearer token (valid for 12 hours)

## Other responses

- `400` — Missing API key
- `401` — Invalid API key or authentication failure
- `403` — Company validation failure
- `422` — Invalid request body (userId missing or blank)

---

[API](https://skmtc.net/thriveglobal/apis/thrive-global-partner-api.md) · [All operations](https://skmtc.net/thriveglobal/apis/thrive-global-partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thriveglobal/thrive-global-partner-api/revisions/0e40a805593b/schema)
