---
title: "Update Token"
method: POST
path: "/tokens/"
tags: ["tokens", "tokens"]
---

# Update Token

`POST /tokens/`

Update the token used to access OpenBB.

Args:
    token_data (`TokenData`): Token data information to update the database.

Returns:
    `MessageResponse`: message indicating success.

## Request body

- TokenData — Model to define the list of tokens available.
  - `openbb` string, required

## Response `200`

Successful Response

- MessageResponse — Model to define a general response with any custom message.
  - `message` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/gptstonks/apis/gptstonks-chat-ce-api.md) · [All operations](https://skmtc.net/gptstonks/apis/gptstonks-chat-ce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gptstonks/gptstonks-chat-ce-api/revisions/a0df966837f8/schema)
