---
title: "POST /api/user-source/{user_source_id}/force-token-auth"
method: POST
path: "/api/user-source/{user_source_id}/force-token-auth"
tags: ["User sources"]
---

# POST /api/user-source/{user_source_id}/force-token-auth

`POST /api/user-source/{user_source_id}/force-token-auth`

Force authenticates an existing user based on their ID. If successful, an access token and a refresh token will be returned.

## Path parameters

- `user_source_id` integer, required

## Response `200`

- object
  - `access_token` string — 'access_token' can be used to authorize for other endpoints that require authorization. This token will be valid for 10 minutes.
  - `refresh_token` string — 'refresh_token' can be used to get a new valid 'access_token'. This token will be valid for 168 hours.

## Other responses

- `401`

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/versions/0c490e5b0c7f/schema)
