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.
What you need
Section titled “What you need”- 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 forpriority.
Fields
Section titled “Fields”| 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. |
Create in the dashboard
Section titled “Create in the dashboard”-
Open Providers and choose to create a new provider.
-
Enter a Name, for example
Example Buyer Ltd. -
Choose an Integration template:
- Direct post creates a single
commitleg (commit_only). - Ping / post creates a
quoteleg followed by acommitleg (quote_then_commit).
- Direct post creates a single
-
Edit each leg: its URL, encoding, field mappings and response mapping. Add headers and secrets where the buyer needs them.
-
Choose Validate configuration to check that everything compiles.
-
Save the provider.
-
Enable the provider when you are ready for it to receive leads.
Create with the API
Section titled “Create with the API”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.
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" } } }'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": "ping", "role": "quote", "request": { "method": "POST", "url": "https://buyer.example/ping", "fields": { "Email": { "type": "field", "source": "payload.email" } } }, "response": { "accepted": "accepted", "bid": "bid" } }, { "name": "post", "role": "commit", "request": { "method": "POST", "url": "https://buyer.example/post", "fields": { "Email": { "type": "field", "source": "payload.email" } } } } ] }, "headers": { "ping": { "Authorization": "Bearer example-token-123" }, "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.
Validate before you save
Section titled “Validate before you save”Validation compiles the configuration and reports any error, without saving anything.
- In the dashboard, choose Validate configuration.
- Through MCP, call the
validate_providertool. 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.
Enable after you save
Section titled “Enable after you save”A provider is created disabled unless you set enabled to true. A sensible order is:
-
Save the provider disabled.
-
Check the saved snapshot: the legs,
header_leg_namesandsecret_namesshould match what you intended. -
Assign the provider to a campaign. The provider’s shape must match the campaign’s routing strategy.
-
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.