Skip to content

Your first API call

Get started · Step 3 of 4

Send your first enrichment request to the Reverse Contact API, parse the JSON response, and fix the errors a first call most often returns.

With your API key ready, make your first profile enrichment call and inspect the result.

1. Send the request

The Person Profile endpoint retrieves a person's professional profile from a Social URL. It costs 1 credit (cached data).

POST /v2/fetch/persons

curl -X POST https://api.reversecontact.com/v2/fetch/persons \
  -H "Authorization: Bearer ${RC_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.social.com/in/janedoe"}'

2. Read the response

A successful response returns the profile inside data. This example keeps the fields most integrations read first: the full profile has 27 fields, including summary, education, languages and certifications, all shown in the Person profile example.

Response

200 OK

{
  "success": true,
  "data": {
    "id": "prs_01jbd5vewyenebxgaz869ffe5t",
    "publicId": "janedoe",
    "firstName": "Jane",
    "lastName": "Doe",
    "headline": "VP of Marketing at Acme Corp",
    "photoUrl": "https://media.licdn.com/dms/image/...",
    "isOpenToWork": false,
    "location": {
      "city": "San Francisco",
      "state": "California",
      "country": "United States",
      "countryCode": "US"
    },
    "currentPosition": {
      "title": "VP of Marketing",
      "companyName": "Acme Corp"
    },
    "experience": [
      {
        "title": "VP of Marketing",
        "companyName": "Acme Corp",
        "startEndDate": { "start": "2021-06-01T00:00:00.000Z", "end": null }
      }
    ],
    "skills": ["Marketing Strategy", "B2B SaaS", "Demand Generation"]
  },
  "error": null,
  "quotas": {
    "creditsConsumed": 1,
    "workspace": {
      "credits": { "total": 10000, "used": 1, "left": 9999 }
    }
  },
  "metadata": {
    "requestId": "a1b2c3d4-e5f6-4a90-abcd-ef1234567890",
    "executionTimeMs": 230,
    "updatedAt": "2025-01-15T09:30:00.000Z"
  }
}

Start with these key fields:

FieldWhat it gives you
data.firstName / data.lastNameFull name
data.headlineCurrent role summary
data.currentPositionJob title + company (how it is chosen)
data.experienceFull work history with dates
data.skillsList of professional skills
data.locationCity, state, country

See the Person Profile endpoint for all available fields, and API reference for the full response structure.

3. Handle errors

If the URL is invalid, you get a 422 with zero credits charged:

Invalid URL

422 Validation Error

{
  "success": false,
  "data": null,
  "error": {
    "code": "INVALID_LINKEDIN_URL",
    "message": "Invalid LinkedIn profile URL. Expected format: https://linkedin.com/in/username"
  }
}
IssueFix
Invalid Social URLSend the full profile URL, with https:// and the /in/username path
401 UnauthorizedCheck your API key. See Authentication
402 Insufficient creditsPurchase more credits from the dashboard
404 Not foundThe profile doesn't exist or isn't indexed yet. Try the Live endpoint

For all error codes and retry strategies, see Error handling & retries.

FAQ

How many credits does a Person Profile request cost?

A POST /v2/fetch/persons request to the Person Profile endpoint costs 1 credit (cached data). The response reports the credits used in quotas.creditsConsumed.

Am I charged for an invalid Social URL?

No. If the URL is invalid, the Person Profile endpoint returns a 422 with the error code INVALID_LINKEDIN_URL and zero credits charged. Send the full profile URL, with https:// and the /in/username path.

Why does the Person Profile endpoint return a 404?

A 404 from the Person Profile endpoint means the profile doesn't exist or isn't indexed yet. In that case, try the Live endpoint.

Where do I find a person's current job title and company in the profile response?

In a Person Profile response, data.currentPosition holds the job title and company, data.headline the current role summary, and data.experience the full work history with dates. See how the current position is chosen.

Can I test the Reverse Contact API without writing code?

Yes. Every endpoint page has a "Try it" button that runs the request from your browser with your API key.

Last verified