> ## 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.

# Find LinkedIn Profile

> Look up a LinkedIn profile by name and company website.

All three fields are required. Matching is case-insensitive: anything after a comma in a name is ignored ("Smith, Jr." matches as "smith"), and `company_domain` accepts a bare domain or a full URL (`https://www.acme.com/about` matches as `acme.com`).

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



## OpenAPI

````yaml POST /api/v1/linkedin_slug_search
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_slug_search:
    post:
      tags:
        - LinkedIn
      summary: Find LinkedIn Profile
      description: >-
        Look up a LinkedIn profile by name and company website.


        All three fields are required. Matching is case-insensitive: anything
        after a comma in a name is ignored ("Smith, Jr." matches as "smith"),
        and `company_domain` accepts a bare domain or a full URL
        (`https://www.acme.com/about` matches as `acme.com`).


        **Billing:** 1 credit per successful match (HTTP 200). Misses (404) and
        request errors (4xx) are not billed.
      operationId: linkedinSlugSearch
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - first_name
                - last_name
                - company_domain
              properties:
                first_name:
                  type: string
                  description: >-
                    Contact's first name. Case-insensitive; anything after a
                    comma is ignored.
                  example: Alice
                last_name:
                  type: string
                  description: >-
                    Contact's last name. Case-insensitive; anything after a
                    comma is ignored.
                  example: Smith
                company_domain:
                  type: string
                  description: Company website domain. Accepts a bare domain or a full URL.
                  example: acme.com
        required: true
      responses:
        '200':
          description: Profile found (1 credit charged)
          content:
            application/json:
              schema:
                type: object
                required:
                  - result
                properties:
                  result:
                    type: object
                    description: >-
                      Matched LinkedIn profile. Only fields known for the
                      contact are present.
                    additionalProperties: true
                    properties:
                      linkedin_url:
                        type: string
                        description: Full URL of the matched LinkedIn profile.
                        example: https://linkedin.com/in/alice-123
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
                    enum:
                      - missing first_name
                      - missing last_name
                      - missing company_domain
                      - unexpected connection error
                      - unexpected error
                    description: >-
                      `missing first_name` / `missing last_name` / `missing
                      company_domain`: the named required field was blank or
                      absent. `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 profile found (not billed)
          content:
            application/json:
              schema:
                type: object
                required:
                  - result
                properties:
                  result:
                    type: object
                    nullable: true
                    description: >-
                      Always `null`; no profile matched the supplied name and
                      company domain.
      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.