> ## Documentation Index
> Fetch the complete documentation index at: https://retention.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# LinkedIn → Hashed Emails

> Get hashed email variants for a profile, ready for ad-platform matching.

`linkedin_slug` accepts either a bare slug (e.g. `alice-123`) or a full profile URL (e.g. `https://www.linkedin.com/in/alice-123`). On a match, the response contains the hashed email variants known for the profile (e.g. `md5_1`, `sha256_1`, `md5_2`, …); ready for ad-platform audience matching.

**Billing:** 1 credit per successful match (HTTP 200). Misses (404) and request errors (4xx) are not billed.



## OpenAPI

````yaml POST /api/v1/linkedin_to_hashed_emails
openapi: 3.0.1
info:
  title: Retention API
  version: v1
  description: Retention.com identity & data resolution APIs.
servers:
  - url: https://api.rb2b.com
security: []
tags:
  - name: Identity
    description: >-
      Core Identity. Resolve a hashed email (or batch) into a shaped person
      profile.
paths:
  /api/v1/linkedin_to_hashed_emails:
    post:
      tags:
        - LinkedIn
      summary: LinkedIn → Hashed Emails
      description: >-
        Get hashed email variants for a profile, ready for ad-platform matching.


        `linkedin_slug` accepts either a bare slug (e.g. `alice-123`) or a full
        profile URL (e.g. `https://www.linkedin.com/in/alice-123`). On a match,
        the response contains the hashed email variants known for the profile
        (e.g. `md5_1`, `sha256_1`, `md5_2`, …); ready for ad-platform audience
        matching.


        **Billing:** 1 credit per successful match (HTTP 200). Misses (404) and
        request errors (4xx) are not billed.
      operationId: linkedinToHashedEmails
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - linkedin_slug
              properties:
                linkedin_slug:
                  type: string
                  description: >-
                    LinkedIn public profile slug. Also accepts a full profile
                    URL.
                  example: alice-123
        required: true
      responses:
        '200':
          description: Hashed emails found (1 credit charged)
          content:
            application/json:
              schema:
                type: object
                required:
                  - results
                properties:
                  results:
                    type: object
                    description: >-
                      Hashed email variants for the matched profile. Keys are
                      numbered hash fields (`md5_1`, `sha256_1`, `md5_2`, …)
                      plus the echoed `linkedin_slug`; only hashes known for the
                      profile are present.
                    additionalProperties:
                      type: string
                    properties:
                      linkedin_slug:
                        type: string
                        description: The matched LinkedIn profile slug.
                        example: alice-123
                      md5_1:
                        type: string
                        description: MD5 hash of an email address linked to the profile.
                        example: 5d41402abc4b2a76b9719d911017c592
                      sha256_1:
                        type: string
                        description: >-
                          SHA-256 hash of an email address linked to the
                          profile.
                        example: >-
                          2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
                    enum:
                      - missing linkedin_slug
                      - invalid linkedin_slug
                      - unexpected connection error
                      - unexpected error
                    description: >-
                      `missing linkedin_slug`: no slug was provided. `invalid
                      linkedin_slug`: the input is not a valid LinkedIn profile
                      slug or URL. `unexpected connection error` / `unexpected
                      error`: temporary error; safe to retry.
        '401':
          description: Missing, malformed, or unknown API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
        '402':
          description: Insufficient credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InsufficientCreditsError'
        '403':
          description: Service not enabled for this API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceDisabledError'
        '404':
          description: No hashed emails found (not billed)
          content:
            application/json:
              schema:
                type: object
                required:
                  - results
                properties:
                  results:
                    type: object
                    nullable: true
                    description: Always `null`; no hashed emails matched the supplied slug.
      security:
        - api_key: []
components:
  schemas:
    AuthError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          enum:
            - missing_api_key
            - invalid_api_key_format
            - invalid_api_key
          description: >-
            `missing_api_key`: no key supplied. `invalid_api_key_format`: key
            does not match the expected format. `invalid_api_key`: key does not
            belong to any account.
    InsufficientCreditsError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          enum:
            - insufficient_api_credits
        required:
          type: string
          description: Credits needed for this request.
          example: '1.0'
        remaining:
          type: string
          description: Credits currently remaining on the account.
          example: '0.0'
    ServiceDisabledError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          enum:
            - service_unavailable_for_key
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        Per-account API key. Also accepted as `Api-Key` or `Authorization:
        Bearer <key>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.