Introduction
Lead’s API are REST based, accepts and returns JSON-encoded payloads, and uses standard HTTP response codes, authentication, and verbs.Authentication
Lead uses OAuth2 for Authentication. When we onboard your program, you will be setup 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
Get Access Token
Use your
client_id and client_secret to get an access_token with the Authentication API.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: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).

