Postman Collection
We provide an official Postman collection to help you quickly test the Marketing Lead Automation Service API. This collection includes pre-configured requests for authentication and all API operations.
Importing the Collection
-
Download the Collection
Download Postman Collection β
Or request the collection file from the engineering team during onboarding.
The collection is named:
[LEAD_PARTNER_ONBOARDING] leads-sandbox.alleviate.com -
Import into Postman
- Open Postman
- Click Import in the top left
- Drag and drop the collection JSON file, or click Upload Files
- Click Import
-
Configure Variables
After importing, configure your credentials:
- Click on the collection name in the sidebar
- Click the Variables tab
- Set the following values:
Variable Description Default Value client_app_idYour applicationβs Client ID (Provided during onboarding) client_secretYour applicationβs Client Secret (Provided during onboarding) alleviate_tenant_idAlleviateβs Azure AD Tenant ID 8797fa3f-ba90-4187-97fb-6ab892ea9035debt_core_app_idDebt Core Application ID (for scope) aba793eb-f395-4f86-be59-7a7d0c1bfdb0base_urlAPI base URL https://leads-sandbox.alleviate.com- Click Save
Collection Structure
The collection is organized into two folders:
π * SEND THIS FIRST authentication βββ [Step 0]: Set Access Token
π New Lead βββ Create Lead βββ Get Lead Status βββ Submit Lead1. Authentication
Run This FirstFolder: * SEND THIS FIRST authentication
Request: [Step 0]: Set Access Token
This request authenticates with Microsoft Entra ID using the OAuth 2.0 client credentials flow. It automatically saves the access token to the utoken collection variable for use in subsequent requests.
Endpoint:
POST https://login.microsoftonline.com/{{alleviate_tenant_id}}/oauth2/v2.0/tokenBody (x-www-form-urlencoded):
| Key | Value |
|---|---|
grant_type | client_credentials |
client_id | {{client_app_id}} |
client_secret | {{client_secret}} |
scope | api://{{debt_core_app_id}}/.default |
2. Create Lead
Folder: New Lead
Request: Create Lead
Submits a new lead for processing. The response id is automatically saved to the lead_id collection variable via a post-request test script.
Endpoint:
POST {{base_url}}/graphqlGraphQL Mutation:
mutation TestMinimalLead($input: LeadInput!) { createLead(input: $input) { id resultCode note partnerLeadId bidValue }}Example Variables (from collection):
{ "input": { "firstName": "John1-1", "lastName": "Test", "dateOfBirth": "1970-01-26", "email": "john.doe1-1@gmail.com", "homePhone": "8166999999", "address1": "1230 Public Lane 456", "city": "Dallas", "state": "OH", "zipCode": "65542", "socialSecurityNumber": "123456789", "incomeSourceId": 1, "residenceTypeId": 2, "payFrequencyId": 1, "monthlyIncome": 4000, "loanAmount": 5000, "loanPurposeId": 1, "estimatedDebt": 25000, "siteURL": "fake.com", "clientIP": "107.77.220.32", "affiliateAppID": "220001-7300907c-1af0-415b-a981-b7e13f718ebd", "leadId": "69-1060-1111" }}3. Get Lead Status
Folder: New Lead
Request: Get Lead Status
Queries lead status by ID for reconciliation and troubleshooting.
Endpoint:
POST {{base_url}}/graphqlGraphQL Query:
query GetLeadStatus($id: ID!) { getLeadStatus(id: $id) { id resultCode note partnerLeadId bidValue }}Variables:
{ "id": "{{lead_id}}"}4. Submit Lead
Folder: New Lead
Request: Submit Lead
Submits a qualified lead to the CRM system. Only call this for leads with qualifying result codes (1013-1017).
Endpoint:
POST {{base_url}}/graphqlGraphQL Mutation:
mutation SubmitLead($input: SubmitLeadInput!) { submitLead(input: $input) { leadId statusCode crmRecordId crm }}Variables:
{ "input": { "leadId": "{{lead_id}}" }}Workflow
Follow this order when testing:
1. Set Access Token β Authenticates and saves token to {{utoken}} β2. Create Lead β Submits lead, saves ID to {{lead_id}} β3. Get Lead Status β Optional lookup for reconciliation/troubleshooting β4. Submit Lead β Only if qualified (resultCode 1013-1017) and manual CRM submission is configuredResult Codes Reference
The following result codes may be returned by lead status responses. These are documented inline in the Postman collection.
Processing State Codes
| Code | Name | Description |
|---|---|---|
| 1000 | SUBMITTED_PROCESSING | Lead submitted and processing |
| 1001 | UNIQUE_PROCESSING_COMPLETE | Lead is unique, processing complete |
Duplicate State Codes
| Code | Name | Description |
|---|---|---|
| 1003 | DUPLICATE_LEAD | Duplicate lead found (workflow stops immediately) |
| 1004 | DUPLICATE_LEAD_CRM | Duplicate lead found |
Processing Failure Codes
| Code | Name | Description |
|---|---|---|
| 1006 | MONEVO_FAILED | Monevo processing failed (workflow stops) |
| 1007 | TRUSTEDFORM_FAILED | TrustedForm processing failed (workflow stops) |
| 1008 | BID_FAILED | Bid processing failed (workflow stops) |
Product Code Based Result Codes (Qualified Leads)
Submit Lead Eligible| Code | Name | Description |
|---|---|---|
| 1013 | PRODUCT_CODE_3225 | Sum(BC33S + US33S + CO06S) + Vantage Score above 600 > 15,000 |
| 1014 | PRODUCT_CODE_3226 | Sum(BC33S + US33S + CO06S) + Vantage Score above 450 > 20,000 |
| 1015 | PRODUCT_CODE_3227 | Sum(BC33S + US33S + CO06S) + Vantage Score above 450 > 30,000 |
| 1016 | PRODUCT_CODE_3228 | Sum(BC33S + US33S + CO06S) + Vantage Score above 450 > 40,000 |
| 1017 | PRODUCT_CODE_3229 | Sum(BC33S + US33S + CO06S) + Vantage Score above 450 > 50,000 |
Other Result Codes
| Code | Name | Description |
|---|---|---|
| 1018 | PRODUCT_CODE_3288 | Credit File Unknown/Not Found (CFU) |
| 1019 | PRODUCT_CODE_3289 | SUM(BC33S + US33S + CO06s) > 15,000 + Vantage Score < 450 |
CRM Submission Result Codes
| Code | Name | Description |
|---|---|---|
| 1021 | CRM_SUBMITTED | Lead Submitted to CRM |
| 1022 | PREVIOUSLY_SUBMITTED_CRM | Lead Previously Submitted to CRM |
Error State Codes
| Code | Name | Description |
|---|---|---|
| 9999 | PROCESSING_ERROR | Error occurred during processing |
Collection Variables
The collection uses these variables:
| Variable | Description | Default Value | Set By |
|---|---|---|---|
alleviate_tenant_id | Azure AD Tenant ID | 8797fa3f-ba90-4187-97fb-6ab892ea9035 | Pre-configured |
client_app_id | Your Client ID | β | You (during onboarding) |
client_secret | Your Client Secret | β | You (during onboarding) |
debt_core_app_id | API scope app ID | aba793eb-f395-4f86-be59-7a7d0c1bfdb0 | Pre-configured |
base_url | API base URL | https://leads-sandbox.alleviate.com | Pre-configured |
utoken | Access token | β | Automatic (after auth) |
lead_id | Last created lead ID | β | Automatic (after createLead) |
Troubleshooting
401 Unauthorized
- Re-run the β[Step 0]: Set Access Tokenβ request in the authentication folder
- Verify your
client_app_idandclient_secretare correct - Check that the token hasnβt expired (tokens are valid for 1 hour)
Invalid Grant / AADSTS Error
- Check that
alleviate_tenant_idis set to8797fa3f-ba90-4187-97fb-6ab892ea9035 - Verify your application is properly registered with Alleviate
- Confirm youβre using the correct
client_secret(not the secret ID)
Lead Not Found
- Ensure youβre using the correct
lead_id(check the collection variable) - Verify youβre hitting the same environment where the lead was created
- Use the
idreturned fromcreateLead, not your externalleadId
Request Times Out
- The sandbox environment may have cold start delays
- Retry after a few seconds
- For
createLead, processing may take up to 30 seconds for credit pulls
Duplicate Lead Error (1003)
- The lead with the same phone/email combination already exists
- Use a different test phone number/email
Related
- Authentication - Detailed authentication guide
- Environments - API endpoints for sandbox and production
- Quick Start - Code examples in multiple languages
- Result Codes - Complete result code documentation
- API Overview - Full API reference