---
title: "Claim Oauth Token"
method: POST
path: "/v1/cloud/oauth/refresh/claim"
tags: ["v1", "Cloud OAuth"]
---

# Claim Oauth Token

`POST /v1/cloud/oauth/refresh/claim`

## Request

- Base URL: `https://memory.papr.ai`
- URL: `https://memory.papr.ai/v1/cloud/oauth/refresh/claim`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

A usable access token for a server-managed connection (refreshed here if close to expiry).

Returns { credential, expiresAt }. The refresh token never leaves the server.

## Query parameters

- `external_user_id` string, nullable

## Request body

- ClaimBody
  - `serverId` string, required
  - `force` boolean
  - `rejectedTokenSha` string, nullable
  - `external_user_id` string, nullable

## Response `200`

Successful Response

- object: Generic JSON response object

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `0e7a5c0d125d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/papr-ai/apis/papr-memory-api/changes/v1/cloud/oauth/refresh/claim/post.md)

---

[API](https://skmtc.dev/papr-ai/apis/papr-memory-api.md) - [All operations](https://skmtc.dev/papr-ai/apis/papr-memory-api/llms.txt) - [OpenAPI document](https://skmtc.dev/papr-ai/apis/papr-memory-api/revisions/6fc381dc78b3?raw)
