Authorization header with the Bearer scheme:
Choose a credential
Do not interchange these credentials. In particular, a source key cannot access account, organization, user, analytics, setup, or other non-ingestion operations.
User access
Use a Leadping user access token only when the application operates as a signed-in user. Generated SDKs do not manage login, refresh, storage, or logout. Your application must obtain the token and attach it to the request adapter.Agent access
Leadping supports WorkOS AuthKit Agent Registration with theservice_auth identity type. The flow requires user approval:
- Register the agent with the user’s email address.
- Send the user to the WorkOS verification link.
- Complete the claim flow with the code shown to the signed-in user.
- Exchange the agent assertion for a short-lived access token.
- Send that token to Leadping as a Bearer credential.
Organization services
Use an organization API key for a conventional server integration that does not use Agent Registration.- Open Leadping API Keys.
- Sign in and select the organization.
- Create a key and choose an expiration.
- Store the value immediately; Leadping displays the full key once.
Source intake
External posting systems use the key assigned to their source:POST /leadsPOST /leads/intake
Verify the selected organization
With an organization API key or an authorized user token, make a read-only request before enabling writes:Diagnose authentication failures
Confirm the header is attached by the final HTTP client, especially when a proxy or request adapter is involved. Inspect a redacted header name and scheme; never print the credential to diagnose the problem.
Replace an organization key
Create the replacement with the intended expiration, store it, and update the consuming service. Verify a read-only request and then revoke the old key. If the old key is exposed, revoke it immediately and restore the integration with a replacement. Source-key rotation differs: it invalidates the previous key immediately. Follow the source rotation procedure for that case.Discovery metadata
- Agent authentication guide
- Protected resource metadata
- API protected resource metadata
- Authorization server metadata
- OpenID Connect metadata
- OpenAPI specification
401 Unauthorized response may identify the applicable resource metadata:
Protect credentials
- Store credentials outside source code.
- Transmit them only over HTTPS.
- Never write them to logs, URLs, lead metadata, or error messages.
- Scope each credential to the required organization and operation.
- Rotate exposed credentials and revoke credentials no longer in use.
- Keep SDK credential storage and refresh logic in your application infrastructure.

