> ## Documentation Index
> Fetch the complete documentation index at: https://docs.postploy.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Postploy's MCP server for posting is https://api.postploy.com/mcp and signs in with OAuth. The REST API base URL is https://api.postploy.com/public/v1 and takes an API key as a Bearer token. The API calls channels accounts.

# Other apps

> Connect any app that supports remote MCP servers.

Any app that can add a remote MCP server can use Postploy.

**1. Add a remote MCP server**

Use this URL. It uses Streamable HTTP.

```text theme={null}
https://api.postploy.com/mcp
```

**2. Sign in and allow**

Sign in when your app asks. Then pick a team and click **Allow** on the Postploy page that opens.

## Use an API key instead

If your app can't sign in, it can send an API key with every request.

**1. Create a key**

In Postploy, open **Settings › AI apps & API** and click **Create key**. Copy it now, because it's shown only once.

**2. Send it as a header**

Set the `Authorization` header to `Bearer` followed by the key. Most apps take a config like this:

```json theme={null}
{
  "mcpServers": {
    "postploy": {
      "type": "http",
      "url": "https://api.postploy.com/mcp",
      "headers": {
        "Authorization": "Bearer ppk_your_key"
      }
    }
  }
}
```

A key acts as you, like a sign-in does. Keep it secret, and delete it in **Settings › AI apps & API** when you stop using it.

## For MCP client developers

Postploy follows the [MCP authorization spec](https://modelcontextprotocol.io/specification/latest/basic/authorization), so any compliant client can sign in.

| | |
| - | - |
| Transport | Streamable HTTP, stateless. Current and earlier protocol revisions. |
| Discovery | A request without a token gets `401` with `WWW-Authenticate: Bearer resource_metadata="…"`. Protected resource metadata is at `https://api.postploy.com/.well-known/oauth-protected-resource/mcp`. |
| Authorization server | `https://api.postploy.com`, with metadata at `/.well-known/oauth-authorization-server` |
| Client registration | Client ID metadata documents (an `https` `client_id`) or dynamic client registration at `/oauth/register` |
| Flow | Authorization code with PKCE (`S256`). Every authorization response includes `iss`. Loopback redirect URIs match any port. |
| Scope | `postploy` |
| Tokens | Access tokens last an hour. Refresh tokens rotate on every use and expire after 90 days unused. Revoke them at `/oauth/revoke`. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.