---
title: "Set Credentials"
method: POST
path: "/v1/accounts/{account_id}/credentials"
---

# Set Credentials

`POST /v1/accounts/{account_id}/credentials`

## Request

- Base URL: `https://api.textforagents.com`
- URL: `https://api.textforagents.com/v1/accounts/{account_id}/credentials`
- Auth: none declared

Set/replace the account's username + password (an
optional human convenience — never required). Setting
credentials revokes every existing session.

## Path parameters

- `account_id` string, required

## Headers

- `authorization` string, nullable

## Request body

- CredentialsBody
  - `password` string, required
  - `username` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/textforagents/apis/textforagents-api.md) · [All operations](https://skmtc.dev/textforagents/apis/textforagents-api/llms.txt) · [OpenAPI document](https://skmtc.dev/textforagents/apis/textforagents-api/revisions/9306ab0e457b?raw)
