Introduction
Lead’s APIs are REST-based, accept and return JSON-encoded payloads, and use standard HTTP response codes, authentication, and verbs.Authentication
Lead uses OAuth2 for Authentication. When we onboard your program, you will be set up with aclient_id and a client_secret. These credentials can be used to retrieve an access_token which you will use to authenticate further requests.
Steps
1
Get Access Token
Use your
client_id and client_secret to get an access_token with the Authentication API.2
Authenticate Requests
Use the
access_token in the 'authorization: Bearer <access_token>' header to authenticate further API requests.Available scopes
Pass one or more of the following values in thescope parameter of the token request (space-delimited) to provision an access token. Request the least-privileged scope appropriate to the operation. A token presented to an endpoint that requires a scope it was not provisioned for returns 403.
There is no separate
originator/* scope for the /v0/originators endpoints. If you’re unsure which scope a specific endpoint requires, contact your Technical Account Manager.IP Allowlist
An IP allowlist restricts API access to a predefined set of approved IPv4 addresses or subnets. Requests originating from addresses outside the allowlist are rejected. This provides an additional layer of protection by ensuring that only trusted networks can access the API.Configuration
Each API partner can be configured with a set of allowed IP subnets. When a request is received, the API server validates the request’s source IP address against the configured allowlist:- If the source IP address falls within an allowed subnet, the request is processed.
- If the source IP address does not match any allowed subnet, the request is rejected and an error is returned.
Setup
To utilize Lead’s IP allowlist feature:1
Provide Lead With Your IP Subnets
Give them to your Technical Account Manager.
2
Specify Each Subnet
Use CIDR notation.
- Maximum subnets: 30
- Supported IP version: IPv4 only
- Supported CIDR prefix lengths: /20 to /32
- Broader ranges such as /16 or /8 are not supported.
Unsupported IP Addresses
The following IP address types cannot be included in the IP allowlist. IPv6 addresses- Only IPv4 addresses are supported.
10.0.0.0/8172.16.0.0/12192.168.0.0/16
127.0.0.0/8
169.254.0.0/16
- Any address not in valid IPv4 format (
x.x.x.x, where each octet is between 0 and 255).

