The integration is optional. It lets a tool such as PitwallWP see your clients, their calendar and numbers, show approvals to your clients, and send ideas into Pitlane.
Connect with one click
- In Pitlane open Settings, PitwallWP, and choose Connect. Sign in to PitwallWP and agree on the consent screen.
- Pitlane makes an integration key and shows it once; only a hash is kept. Making a new key replaces the old one, and Revoke stops it.
Calling the API
Base address: your Pitlane address followed by /api/integrations/pitwallwp/v1. Every request carries the key. A key sees only its own agency; other ids answer 404. The limit is 120 requests a minute per key.
Authorization: Bearer pwk_...- GET /ping: check the key and see the agency.
- GET /clients and POST /clients/:id/link: list clients and link one to a site.
- GET /clients/:id/posts?from=YYYY-MM-DD&to=YYYY-MM-DD: the calendar, up to 100 days.
- GET /posts/:id: the full post for a client area. Team-only comments and email addresses are left out.
- POST /posts/:id/approval and POST /posts/:id/comments: approve, request changes or comment as the client.
- GET /clients/:id/stats?month=YYYY-MM: the month in numbers, with reach, engagement and top posts.
Errors are JSON: { "error": "code", "message": "text" }. Times are unix seconds in UTC. Networks are named FACEBOOK, INSTAGRAM, X, TIKTOK and so on.
Still stuck? Write to support@pitlanesocial.com.