Getting started overview
Integrating with the LexisNexis API for identity verification, fraud prevention, or risk assessment involves a structured process. This guide focuses on the initial steps: account creation, credential acquisition, and executing a foundational API request. LexisNexis Risk Solutions provides access to a range of data and analytics services, which are typically consumed through RESTful APIs. The primary objective for developers is to establish secure communication with these services to leverage data for various business applications.
The LexisNexis developer portal serves as the central hub for technical documentation, API specifications, and support resources. Access to specific APIs and environments often requires direct engagement with LexisNexis sales and technical teams, as the services are tailored to enterprise-level requirements and often involve custom pricing structures.
Below is a quick reference table summarizing the key steps to begin your integration:
| Step | What to Do | Where to Do It |
|---|---|---|
| 1. Initial Contact & Inquiry | Reach out to LexisNexis Risk Solutions sales to discuss your use case and data requirements. | LexisNexis Risk Solutions homepage |
| 2. Account Setup & Agreement | Finalize commercial agreements and initiate the technical account setup, which includes defining the APIs you will access. | Directly with LexisNexis Sales/Account Team |
| 3. Credential Provisioning | Receive your API keys, client IDs, client secrets, or other authentication tokens. | LexisNexis Developer Portal or via your Account Manager |
| 4. Explore Documentation | Review the specific API documentation relevant to your subscribed services. | LexisNexis API documentation |
| 5. Make First Request | Construct and execute a test API call using your provisioned credentials. | Your preferred development environment (e.g., Postman, cURL, custom code) |
| 6. Implement Error Handling | Begin designing systems to manage API responses, including error codes and data parsing. | Your application's codebase |
Create an account and get keys
Access to the LexisNexis API ecosystem typically begins with direct engagement rather than a self-service signup portal common with many public APIs. Given the nature of the data (e.g., public records, identity data, credit risk information) and the compliance requirements (e.g., GDPR, CCPA), LexisNexis maintains a controlled access model.
- Contact Sales: The first step is to contact the LexisNexis Risk Solutions sales team. You will need to articulate your business use case (e.g., identity verification for new customer onboarding, fraud detection for online transactions) and the specific data requirements. This initial consultation helps LexisNexis determine the appropriate API products and data access levels for your needs.
- Contracting and Onboarding: Following discussions, a commercial agreement will be established. This agreement outlines the terms of service, data usage policies, and pricing specific to your organization. During this phase, technical onboarding will commence, where your team will be granted access to the LexisNexis Developer Portal.
- Credential Provisioning: Once your account is set up and agreements are in place, LexisNexis will provision your API credentials. These typically include API keys, client IDs, and client secrets necessary for authenticating your requests. The exact format and method of authentication can vary depending on the specific LexisNexis API you are integrating with, but common patterns include API key in headers or OAuth 2.0 client credential flows. You will usually receive these credentials directly from your account manager or find them within a secure section of the developer portal.
- Secure Credential Storage: It is critical to store these credentials securely. Best practices dictate against hardcoding them directly into your application code. Instead, use environment variables, secure configuration files, or dedicated secret management services (e.g., AWS Secrets Manager, Google Cloud Secret Manager, Azure Key Vault).
Your first request
After acquiring your API credentials, the next step is to make a successful API call. This validates your access and helps you understand the API's structure and response formats. The specific endpoint and request body will depend on the LexisNexis API service you are using (e.g., Instant Verify, ThreatMetrix, Batch Solutions). For this example, we'll outline a generic RESTful API request structure that is common across many LexisNexis services.
Before proceeding, ensure you have reviewed the LexisNexis API reference documentation for the specific service you are integrating. This documentation will provide precise endpoint URLs, required headers, request body structure (often JSON or XML), and expected response formats.
Example: Generic Identity Verification Request (Conceptual)
Assume you are using an Identity Verification API that accepts a JSON payload and uses an API key for authentication.
1. Choose your Tool
You can use command-line tools like cURL, programmatic HTTP clients in your preferred language (e.g., Python's requests, Node.js's axios), or API testing platforms like Postman.
2. Define the Endpoint and Method
Refer to your specific API documentation. A conceptual endpoint might look like:
POST https://api.risk.lexisnexis.com/identity/v1/verify
3. Construct Headers
Headers typically include content type, and most importantly, your authentication token. Replace YOUR_API_KEY with your actual key.
Content-Type: application/json
Accept: application/json
x-api-key: YOUR_API_KEY
4. Prepare the Request Body
The body will be a JSON object containing the data points required for the verification. This is highly specific to the API. For a conceptual identity verification, it might include:
{
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "1980-01-15",
"address": {
"street": "123 Main St",
"city": "Anytown",
"state": "CA",
"zip": "90210"
}
}
5. Execute the Request (using cURL as an example)
Combine the above elements into a cURL command:
curl -X POST \
'https://api.risk.lexisnexis.com/identity/v1/verify' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "1980-01-15",
"address": {
"street": "123 Main St",
"city": "Anytown",
"state": "CA",
"zip": "90210"
}
}'
6. Interpret the Response
A successful response will typically return a 200 OK HTTP status code and a JSON payload containing the verification results. This might include a score, status, or specific data points related to the identity check.
{
"verificationStatus": "SUCCESS",
"score": 85,
"matchDetails": [
{"field": "name", "status": "match"},
{"field": "address", "status": "partial_match"}
],
"transactionId": "TRX123456789"
}
Common next steps
Once you have successfully made your first API call, you can proceed with deeper integration and development:
- Error Handling and Retry Logic: Implement robust error handling. Understand the different HTTP status codes and error messages returned by the LexisNexis APIs. Design retry logic for transient errors (e.g.,
5xxserver errors) with exponential backoff to prevent overwhelming the API. - Production Readiness: Move from a test environment to a production environment. This often involves using different API keys and endpoints. Ensure your application securely handles and transmits sensitive data in compliance with relevant regulations (e.g., ISO 27001 standards).
- Asynchronous Processing: For batch processing or long-running queries, LexisNexis may offer asynchronous APIs or webhooks. Investigate these options if your use case involves processing large volumes of data or requires real-time notifications of status changes.
- Performance Optimization: Monitor API call latency and throughput. Optimize your application's network requests and data processing to ensure efficient use of the API. Consider caching strategies for static or infrequently changing data, if applicable and permitted by terms of service.
- Security Best Practices: Beyond secure credential storage, implement measures like input validation, output encoding, and strong encryption for data in transit and at rest. Regularly audit your integration for vulnerabilities.
- Scalability Planning: Design your integration to scale with your business needs. Understand rate limits imposed by LexisNexis and plan your architecture to accommodate increasing call volumes, potentially using queues or load balancing.
- Monitoring and Alerting: Set up comprehensive monitoring for your API integration. Track API call success rates, response times, and error rates. Configure alerts to notify your team of any anomalies or issues.
Troubleshooting the first call
Encountering issues during your first API call is common. Here are some troubleshooting steps:
- Check API Key/Credentials: Verify that your API key or other authentication credentials are correct and properly included in the request headers or body as specified by the LexisNexis documentation. Even a single character error can lead to authentication failures.
- Review Endpoint URL: Confirm that the API endpoint URL is accurate. Ensure there are no typos, and you are using the correct protocol (HTTP vs. HTTPS) and domain.
- Verify HTTP Method: Ensure you are using the correct HTTP method (e.g., GET, POST, PUT, DELETE) for the specific API operation. Using a
GETrequest when aPOSTis expected will result in an error. - Examine Request Headers: Double-check all required HTTP headers, especially
Content-Type(e.g.,application/json) andAccept. Missing or incorrect headers can cause the API to reject the request. - Validate Request Body: If your request includes a body (e.g., JSON payload for a
POSTrequest), ensure it is well-formed and adheres to the API's schema. Use a JSON validator to check for syntax errors. Missing required fields or incorrect data types are frequent causes of errors. - Inspect Error Messages: LexisNexis APIs typically return detailed error messages in the response body if a request fails. Read these messages carefully, as they often pinpoint the exact issue (e.g., "Invalid API Key," "Missing Required Field: firstName").
- Network Connectivity: Ensure your development environment has outbound network access to the LexisNexis API endpoints. Firewalls or proxy servers might block connections.
- Rate Limiting: While less common for a very first call, be aware that repeated failed attempts in a short period might trigger temporary rate limits. If you suspect this, wait a few minutes before retrying.
- Consult Documentation: Re-read the specific API endpoint's documentation on the LexisNexis developer portal. Pay close attention to examples provided, required parameters, and expected data types.
- Contact Support: If you've exhausted all troubleshooting steps, contact LexisNexis support or your assigned account manager. Provide them with your request details (endpoint, headers, body, timestamp of the request), the full error response, and any relevant logs.