Skip to content

Troubleshooting

Start with the guide that matches your problem.

This page covers account-level problems: authentication errors, idempotency conflicts and webhook signatures. For the shape of error responses, see API errors.

Pingdex could not identify you. Check that:

  • You send the header as Authorization: Bearer <token>, with the word Bearer, one space and the whole token.
  • You are calling https://api.pingdex.io, and the token is the one you copied when you created the key. Tokens are shown once.
  • The key has not been revoked or reached its expiry. Keys last about a year by default. Open Settings, API keys to see whether it is still listed.
  • No proxy or HTTP client strips the Authorization header.
  • You send Accept: application/json, so you get a JSON error instead of a redirect.

If in doubt, create a new key and try again. See API keys and API authentication.

The token is valid, but it lacks a scope the endpoint needs.

Action Scope needed
Submit a lead leads:ingest
List or read leads and attempts leads:read
Create or change providers providers:manage
Create or change campaigns campaigns:manage

leads:ingest does not let you read leads back. Scopes cannot be edited after creation, so create a new key with the scopes you need and revoke the old one. See API keys.

Resources that belong to another account return 404. Check that the key belongs to the account that owns the campaign, provider or lead. See Account.

The MCP server uses the same keys. A client that fails to connect usually has the wrong URL (copy it from Settings, MCP), a missing or expired token, or a token without the scopes its tools need. See Connect a client.

A 409 on POST https://api.pingdex.io/api/v1/leads means you reused an Idempotency-Key with a different request. Pingdex compares the campaign_id, external_id and payload with the first request that used the key.

  • To retry the same lead, resend exactly the same values with the same key.
  • To submit a different lead, use a new key.
  • Do not reuse keys across unrelated leads. Generate one per lead, for example a UUID.

Differences in JSON key order do not matter. A change to a value does. See Idempotency.

If your receiver rejects Pingdex requests because the signature does not match, check these causes in order.

  1. You hashed the parsed body. Compute the HMAC over the raw bytes you received, before you parse or re-serialise the JSON. Changing whitespace or key order changes the digest. Most frameworks have a raw-body option.
  2. A middleware changed the body. Proxies, gateways and body parsers can alter the payload. Capture the body before any of them run.
  3. The secret is wrong. The secret in your receiver must match the one saved under Settings, Webhooks. If you rotated it, update the receiver. Check for stray spaces or quotes from an environment file.
  4. You compare the wrong encoding. The Signature header is a lowercase hex digest of HMAC-SHA256, with no prefix and no base64. Compute the hex digest and compare it as text.
  5. You read the wrong header. The header is Signature. Header names are not case-sensitive, but make sure your framework is not reading a different one.
  6. The comparison fails on length. Compare in constant time, and handle a missing header as a failure.

See Account webhooks for working examples.

  • A URL and a secret must both be saved. A webhook with no secret sends nothing.
  • The URL must use https and be reachable from the public internet.
  • Events are sent only when a lead reaches delivered, failed or indeterminate. They do not backfill leads from before you set the webhook up.
  • Your endpoint must respond with 2xx within 10 seconds. Pingdex makes up to 3 attempts per event.
  • If you changed the URL or secret while an event was waiting, that event is not sent to the new destination.

Because delivery is at least once, de-duplicate on event_id. A webhook failure never changes the lead, so you can always read the lead through the Leads API. See also Lead troubleshooting.

Look at the lead’s attempts, which record what happened with each provider, and the FAQ.