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

# Create a profile



## OpenAPI

````yaml https://linkedin.narrativeconnectors.com/openapi.json post /profiles
openapi: 3.0.2
info:
  title: LinkedIn Connector API
  version: '2026-10-14'
  description: >-
    The LinkedIn connector API.


    Every operation except `/interfaces` needs a Narrative API token in the
    `Authorization: Bearer <token>` header.

    A request without the header gets a 403 with an empty body.
servers:
  - url: https://linkedin.narrativeconnectors.com
    description: Production
  - url: https://linkedin-dev.narrativeconnectors.com
    description: Development
security:
  - smithy.api.httpBearerAuth: []
paths:
  /profiles:
    post:
      tags:
        - profiles
      summary: Create a profile
      operationId: CreateProfile
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateProfileRequest'
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Profile'
        '400':
          description: >-
            The request is invalid. `error` is `bad_payload` when the body or a
            parameter cannot be read, or `invalid_request` when the request is
            well-formed but cannot be applied.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '403':
          description: >-
            The token is missing, invalid or expired. A request without an
            `Authorization: Bearer` header gets an empty body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '500':
          description: Unexpected failure.
        '502':
          description: The Narrative API failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpstreamError'
components:
  schemas:
    CreateProfileRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
      required:
        - name
    Profile:
      type: object
      properties:
        id:
          type: string
          description: Profile Id must be in UUID format.
        name:
          type: string
        status:
          $ref: '#/components/schemas/ProfileStatus'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        auth_status:
          $ref: '#/components/schemas/AuthStatus'
        token_expires_at:
          type: string
          description: >-
            When the LinkedIn grant expires and the profile has to be
            reconnected: the refresh token's expiry (365 days

            after consent; the connector refreshes the 60-day access token until
            then), or the access token's expiry when

            LinkedIn issued no refresh token. Absent when the profile is not
            connected.
          format: date-time
      required:
        - auth_status
        - created_at
        - id
        - name
        - status
        - updated_at
    BadRequestError:
      type: object
      description: >-
        The request is invalid. `error` is `bad_payload` when the body or a
        parameter cannot be read, or

        `invalid_request` when the request is well-formed but cannot be applied.
      properties:
        error:
          type: string
          description: '`bad_payload` or `invalid_request`.'
        error_description:
          type: string
      required:
        - error
        - error_description
    ForbiddenError:
      type: object
      description: >-
        The token is missing, invalid or expired. A request without an
        `Authorization: Bearer` header gets an empty body.
      properties:
        error:
          type: string
          description: '`forbidden`.'
        error_description:
          type: string
    UpstreamError:
      type: object
      description: The Narrative API failed.
      properties:
        error:
          type: string
          description: '`upstream_error`.'
        error_description:
          type: string
      required:
        - error
        - error_description
    ProfileStatus:
      type: string
      enum:
        - archived
        - disabled
        - enabled
    AuthStatus:
      type: string
      description: >-
        `expiring` means the grant (see `token_expires_at`) expires within 7
        days. Reconnect an `expiring` or `expired` profile with

        `GET /profiles/{id}/authorize`.
      enum:
        - not_connected
        - connected
        - expiring
        - expired
  securitySchemes:
    smithy.api.httpBearerAuth:
      type: http
      description: HTTP Bearer authentication
      scheme: Bearer

````

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