Skip to content

Create a provider

You can create a provider in the dashboard or with the API. Both routes run the same checks before anything is saved.

  • The buyer’s endpoint URL or URLs. Each must be an absolute URL using https. See Authentication for the outbound rules.
  • Any credentials the buyer requires, ready to store as headers or secrets.
  • The fields the buyer expects, and which lead fields map to them. See Request mapping.
  • Which routing strategy the provider is for: ping/post for highest_bid, direct post for priority.
Field Required Notes
name Yes Up to 255 characters.
integration Yes A JSON object with a legs array. See Integration specification.
enabled No Defaults to false.
headers No Per-leg header objects, keyed by leg name. Encrypted at rest.
secrets No Secret name to value. Encrypted at rest.
  1. Open Providers and choose to create a new provider.

  2. Enter a Name, for example Example Buyer Ltd.

  3. Choose an Integration template:

    • Direct post creates a single commit leg (commit_only).
    • Ping / post creates a quote leg followed by a commit leg (quote_then_commit).
  4. Edit each leg: its URL, encoding, field mappings and response mapping. Add headers and secrets where the buyer needs them.

  5. Choose Validate configuration to check that everything compiles.

  6. Save the provider.

  7. Enable the provider when you are ready for it to receive leads.

Send a POST to https://api.pingdex.io/v1/providers with a bearer token that has the providers:manage scope. See API keys for how to create a token.

integration, headers and secrets must be JSON objects. A JSON string is rejected.

Terminal window
curl https://api.pingdex.io/v1/providers \
-H "Authorization: Bearer $PINGDEX_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Example Buyer Ltd",
"enabled": false,
"integration": {
"legs": [
{
"name": "post",
"role": "commit",
"request": {
"method": "POST",
"url": "https://buyer.example/post",
"fields": {
"Email": { "type": "field", "source": "payload.email" },
"Source": { "type": "static", "value": "pingdex" }
}
}
}
]
},
"headers": {
"post": { "Authorization": "Bearer example-token-123" }
}
}'

A successful request returns 201 with the provider’s safe snapshot. Header values and secret values are never included. The full endpoint reference is on Providers API.

Validation compiles the configuration and reports any error, without saving anything.

  • In the dashboard, choose Validate configuration.
  • Through MCP, call the validate_provider tool. See MCP tools.

Validation checks that the configuration is well formed: the leg layout, names, URLs, field mappings, response mappings, headers and secrets. For an existing provider, it also checks the draft against the provider’s assigned campaigns.

A provider is created disabled unless you set enabled to true. A sensible order is:

  1. Save the provider disabled.

  2. Check the saved snapshot: the legs, header_leg_names and secret_names should match what you intended.

  3. Assign the provider to a campaign. The provider’s shape must match the campaign’s routing strategy.

  4. Enable the provider. Enabling compiles the stored integration again, and fails with a validation error if it no longer compiles.

You can enable or disable a provider at any time. Disabling excludes it from delivery without removing it from any campaign.