Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
},
"favicon": "/favicon.ico",
"redirects": [
{
"source": "/public-api/oauth",
"destination": "/oauth",
"permanent": true
},
{
"source": "/introduction",
"destination": "/general/introduction",
Expand Down Expand Up @@ -453,7 +458,7 @@
{
"group": "OAuth2",
"pages": [
"public-api/oauth"
"oauth"
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion general/settings/developers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Postiz users will authorise, rather than something that acts as you.
You get a client ID and a client secret.
</Step>
<Step title="Implement the flow">
See [OAuth2 for developers](/public-api/oauth).
See [OAuth2 for developers](/oauth).
</Step>
</Steps>

Expand Down
2 changes: 1 addition & 1 deletion mcp/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Use it directly in the MCP endpoint URL, or as a Bearer token.

### OAuth Token

If you're building an app for other Postiz users, use [OAuth2](/public-api/oauth) to obtain tokens. OAuth tokens start with `pos_` and work the same way as API keys.
If you're building an app for other Postiz users, use [OAuth2](/oauth) to obtain tokens. OAuth tokens start with `pos_` and work the same way as API keys.

## Connecting

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion public-api/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ curl -H "Authorization: your-api-key" https://api.postiz.com/public/v1/integrati

### OAuth2 Token

If you're building an app for other Postiz users, use [OAuth2 Authentication](/public-api/oauth) to get tokens that act on behalf of users. OAuth tokens start with `pos_` and are used the same way:
If you're building an app for other Postiz users, use [OAuth2 Authentication](/oauth) to get tokens that act on behalf of users. OAuth tokens start with `pos_` and are used the same way:

```bash
curl -H "Authorization: pos_your-oauth-token" https://api.postiz.com/public/v1/integrations
Expand Down
5 changes: 3 additions & 2 deletions scripts/check-docs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ const tabPrefixes = {
Cloud: ['cloud/'],
'Self-Hosting': ['self-host/'],
'Public API': ['public-api/'],
Automation: ['cli/', 'mcp/'],
Agents: ['cli/', 'mcp/'],
'Add Postiz to your app': ['oauth'],
Contributing: ['contributing/'],
};

// Deliberate cross-listings: the URL prefix still decides the audience, this
// only moves where the page appears in the sidebar.
// self-host/cli-auth-server is self-hosting work that only CLI users do, so
// it sits in the Automation tab while keeping its /self-host/ URL.
// it sits in the Agents tab while keeping its /self-host/ URL.
const tabPrefixExceptions = new Set(['self-host/cli-auth-server']);

// Pages that are allowed to mention self-hosting mechanics despite living in a
Expand Down
Loading