Endpoint requirements
Your server must:- Accept
POSTrequests withContent-Type: application/json - Validate the
Authorization: Bearer <token>header - Return a
2xxstatus code on success
Bearer token authentication
TPC sends the token you paste into the integration form as:401.
Body template
Use placeholders to map TPC’s fields into your endpoint’s expected shape. Available placeholders:{{title}}{{content}}{{excerpt}}{{platform}}{{status}}{{thumbnailUrl}}{{heroImageUrl}}
Optional custom headers
If your endpoint needs extra headers (API key, tenant ID), paste them as a JSON object in the integration form:Connect in TPC
- Open Settings → Integrations in your TPC product workspace.
- Select Custom endpoint.
- Enter:
- Endpoint URL — the fully qualified URL TPC should POST to
- Bearer token — the token your server will validate
- Body template — JSON with placeholders
- Custom headers — optional JSON object
- Click Save, then Test connection.
Troubleshooting
Test connection times out
TPC waits up to 30 seconds. Confirm the endpoint is publicly reachable and responds within that window.401 or 403
Your endpoint rejected the bearer token. Confirm the token stored in your server matches the one pasted into TPC.Non-2xx status but content saved
Return a2xx status only after the write is durable. Any non-2xx response is treated as a failure and shown as an error in the publish log.