Batch

Create an External Batch Provider

Changed on

Register an HTTPS external enrichment provider.

post/v1/batch/providers

Request

  • Base URL
    https://api.leadmagic.io
  • Auth
    API key in header X-API-Key

Request body

namestring required

Display name for the provider.

baseUrlstring uri required

HTTPS endpoint to call. Private IP addresses are rejected.

authType'api_key' | 'bearer' | 'header' required

How the credential is presented to the provider.

authCredentialNamestring required

Header or parameter name carrying the credential.

authCredentialValuestring required

Credential value. Redacted in every response.

defaultMethod'GET' | 'POST'

HTTP method used for provider calls.

defaultHeadersobject

Extra headers sent with every provider call.

rateLimitRpminteger

Requests per minute ceiling for this provider.

responseMappingobject

Maps provider response fields onto LeadMagic output columns.

healthCheckUrlstring uri

URL polled to determine provider health.

healthCheckExpectedStatusinteger

HTTP status treated as healthy.

Example request

{
  "name": "acme-enrichment",
  "baseUrl": "https://api.acme.com/enrich",
  "authCredentialName": "X-API-Key",
  "healthCheckExpectedStatus": 200
}

Response

Provider created with credentials redacted.

Changes

    • breaking

      the ////// response's property format changed from uri to uri-reference for status

    • breaking

      the ////////// response's property format changed from uri to uri-reference for status

    • breaking

      the ////////// response's property format changed from uri to uri-reference for status

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property