> ## Documentation Index
> Fetch the complete documentation index at: https://docs.api.tamtam.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Extract a person's profile

> Resolve a person from the best available input and return their full LinkedIn profile with experiences.

**Resolution priority:** `linkedin_url` > `email` > `firstname`/`lastname`.

All fields are optional, but at least one resolution path must be provided. `company_name` improves accuracy for email and name-based resolution.

Costs 1 credit.



## OpenAPI

````yaml /reference/openapi.yaml post /v2/people/extract
openapi: 3.1.0
info:
  title: Tamtam Public API
  version: 2.0.0
servers:
  - url: https://api.tamtam.ai/api
security: []
paths:
  /v2/people/extract:
    post:
      tags:
        - People Extract
      summary: Extract a person's profile
      description: >-
        Resolve a person from the best available input and return their full
        LinkedIn profile with experiences.


        **Resolution priority:** `linkedin_url` > `email` >
        `firstname`/`lastname`.


        All fields are optional, but at least one resolution path must be
        provided. `company_name` improves accuracy for email and name-based
        resolution.


        Costs 1 credit.
      operationId: extract-person
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtractPersonInputBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtractPersonOutputBody'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
        - apikeyAuth: []
        - bearerAuth: []
components:
  schemas:
    ExtractPersonInputBody:
      additionalProperties: false
      properties:
        company_name:
          description: >-
            Company name (improves matching accuracy for email and name-based
            resolution)
          examples:
            - Acme Corp
          type: string
        email:
          description: Email address to resolve to a LinkedIn profile
          examples:
            - jean.dupont@acme.com
          type: string
        firstname:
          description: Person first name
          examples:
            - Jean
          type: string
        lastname:
          description: Person last name
          examples:
            - Dupont
          type: string
        linkedin_url:
          description: >-
            LinkedIn profile URL. If provided, used directly to extract the
            profile.
          examples:
            - https://www.linkedin.com/in/jean-dupont
          type: string
      type: object
    ExtractPersonOutputBody:
      additionalProperties: false
      properties:
        city:
          description: City
          type: string
        contact_id:
          description: Tamtam contact ID
          type: string
        country_code:
          description: Country code (2-letter ISO)
          type: string
        current_experience:
          $ref: '#/components/schemas/ExtractPersonExperienceDto'
          description: Current (most recent) experience with no end date
        experiences:
          description: All experiences
          items:
            $ref: '#/components/schemas/ExtractPersonExperienceDto'
          type:
            - array
            - 'null'
        firstname:
          description: First name
          type: string
        headline:
          description: LinkedIn headline
          type: string
        lastname:
          description: Last name
          type: string
        linkedin_profile_id:
          description: Tamtam LinkedIn profile ID
          type: string
        linkedin_url:
          description: LinkedIn profile URL
          type: string
        photo_url:
          description: Profile photo URL
          type: string
        state:
          description: State or region
          type: string
        summary:
          description: LinkedIn About section
          type: string
      required:
        - contact_id
        - linkedin_profile_id
        - linkedin_url
        - firstname
        - lastname
        - experiences
      type: object
    ErrorModel:
      additionalProperties: false
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    ExtractPersonExperienceDto:
      additionalProperties: false
      properties:
        company_linkedin_id:
          description: Company LinkedIn numeric ID
          type: string
        company_name:
          description: Company name
          type: string
        company_slug:
          description: Company LinkedIn slug
          type: string
        country_code:
          description: Country code (2-letter ISO)
          type: string
        description:
          description: Experience description
          type: string
        end_date:
          description: End date (YYYY-MM), null if current
          examples:
            - 2024-06
          type: string
        location:
          description: Location (free text)
          type: string
        start_date:
          description: Start date (YYYY-MM)
          examples:
            - 2022-01
          type: string
        title:
          description: Job title
          type: string
      required:
        - title
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    apikeyAuth:
      description: Account API key passed in the Authorization header
      in: header
      name: Authorization
      type: apiKey
    bearerAuth:
      description: Bearer JWT obtained via the OAuth 2.1 authorization flow
      scheme: bearer
      type: http

````