With the API you connect pgday to your own tools and automations. That lets you read or write leads programmatically and plug pgday into your existing workflows. API access is available on the Pro plan and is managed by admins.
Create an API key
- Open Settings → Integrations, AI & plan.
- Give your key a meaningful name (e.g. "CRM Integration").
- Explicitly choose the organisation or one Space. A Space key only accesses events and leads belonging to that Space; an organisation key can access its organisation's events across Spaces.
- Choose the required permissions: read leads, events or leaderboards, and optionally create/update leads. Only lead reading is selected initially.
- Click Create API key.
- Copy the key right away and store it safely — it's shown in full only once. Then use Got it, key saved to hide it.
The list shows the key's name, organisation or Space, permissions, short prefix and creation date, never the full key. If the Space is deleted, the key does not become organisation-wide; the list marks the Space as unavailable. To change a key's scope or permissions, create a replacement and revoke the old key.
If creation cannot be confirmed, inspect the refreshed list before trying again. An unconfirmed key may already exist; revoke it if you did not receive its full value.
Security
- Treat the key like a password.
- Never share it in public code, chats, screenshots, or tickets.
- Never paste it into untrusted places.
- If you suspect misuse: revoke the key and create a new one.
Revoke a key
You can revoke any key at any time under Integrations. A revoked key becomes invalid immediately — any integration using it stops working. Simply create a new key when needed.
Admins and Game Masters retain access to the list and revocation when the API feature or plan is no longer active. Creating new keys requires active API access. Losing management rights also removes key-management access.
What to use it for
- Custom integrations with your tools.
- Data export and import of leads.
- Automations that create or update leads.
For a ready-made CRM connection you don't need to code anything — use the Zoho CRM integration instead.
Creating and updating leads
A write-enabled key needs the leads:write permission. For POST /leads, send company_name, the sales representative’s full user_email, and an explicit event_id. The email must belong to a current member with access to that event and its Space; a display name or email prefix is not sufficient. Dedicated Space participants must have joined that exact event.
Use an active event stage in meeting_type (default: outreach) and, optionally, an active channel. Points come from that event’s stage, channel and cold-lead rules. Do not send points, tenant_id, space_id or user_id. For phone channels, phone_contact: "reached" earns the channel bonus; "not_reached" requires an Outreach stage and earns no phone bonus. Omitted phone evidence never earns a phone bonus.
PUT /leads/{id} can update contact details, notes, status, stage, channel and temperature. The representative, organisation, Event and Space stay fixed. Notes-only edits preserve historical points, even if the old stage is no longer active. A changed scoring field uses the current event rules; phone-channel recalculation requires explicit phone_contact evidence.
A 409 response means a concurrent change rolled the write back. If the connection fails or a 503 response says the write could not be confirmed, check the lead list before retrying a create request to avoid duplicates.
Note
API access requires the Pro plan. For how to manage your plan, see Plans & billing; for an overview of plans, see the pricing page. For how your data is protected, see Data & privacy.
Developer resources
See the developer guide, production OpenAPI, permission catalog and onboarding status. Try the free synthetic read-only sandbox without an account or key. Production organisation creation currently requires pilot access; the configured trial is not open for public signup.
Official CLI
Install with brew install kkuckein/pgday/pgday on macOS or Linux, then run pgday events list --sandbox without credentials. See the CLI guide for the official Homebrew tap, versioned downloads and production credential setup.