# Connect a credential platform with the PostEverywhere API

**Source:** https://posteverywhere.ai/docs/api/connect-credential-account

---

[Works with ChatGPT, Claude and every AI agent Works with all AI agents Connect yours](https://posteverywhere.ai/agents)

POST /accounts/connect-credential

# Connect a credential platform with the PostEverywhere API

Connects a credential-based platform entirely through the API, no browser involved. Credentials are validated live against the platform before saving; invalid credentials return a 400 with the reason. Re-submitting credentials for an already-connected account updates it in place (this is also how these platforms reconnect). Required fields by platform: telegram needs `bot_token` (from @BotFather; the bot must be an admin of the channel) and `channel` (@username or numeric chat id); discord needs `webhook_url`; bluesky needs `handle` and `app_password` (an app password, never the main account password); wordpress needs `site_url`, `username` and `app_password` (a WordPress Application Password from Users > Profile, never the login password; WordPress 5.6+). WordPress.com sites connect in the PostEverywhere app (browser sign-in), not through this endpoint. Error codes: `missing_credentials` (a required field is empty), `invalid_platform` (not a credential platform), `credential_connect_failed` (the platform refused the credentials; the message says why, e.g. a wrong Application Password or a site with the REST API turned off).

Guides: [Connecting accounts guide](https://posteverywhere.ai/docs/connecting-accounts) · [Account health guide](https://posteverywhere.ai/docs/account-health)

This endpoint accepts a JSON request body. See the [accounts guide](https://posteverywhere.ai/docs/connecting-accounts) for a worked example.

## Responses

- 200 Account connected
- 400
- 401
- 402
- 403
- 429
- 500

## More in Accounts

- [List accounts](https://posteverywhere.ai/docs/api/list-accounts)
- [Get an account](https://posteverywhere.ai/docs/api/get-account)
- [Account health](https://posteverywhere.ai/docs/api/get-account-health)
- [Create a connect link](https://posteverywhere.ai/docs/api/create-connect-link)
- [Reconnect an account](https://posteverywhere.ai/docs/api/create-reconnect-link)

[← Create a connect link](https://posteverywhere.ai/docs/api/create-connect-link) [Reconnect an account →](https://posteverywhere.ai/docs/api/create-reconnect-link)

[← All endpoints](https://posteverywhere.ai/docs/api/reference)
