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

# Connect (or reconnect) a social account



## OpenAPI

````yaml /api-reference/openapi.json post /v1/accounts/connect
openapi: 3.0.0
info:
  title: PlugKit API
  description: >-
    One API to publish, schedule and message across Instagram, WhatsApp, TikTok,
    Telegram, YouTube and X.
  version: 1.0.0
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/accounts/connect:
    post:
      tags:
        - accounts
      summary: Connect (or reconnect) a social account
      operationId: AccountsController_connect
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConnectAccountDto'
      responses:
        '201':
          description: ''
      security:
        - api-key: []
components:
  schemas:
    ConnectAccountDto:
      type: object
      properties:
        platform:
          type: string
          enum:
            - instagram
            - whatsapp
            - tiktok
            - telegram
            - youtube
            - x
            - facebook
            - meta_ads
            - linkedin
        profileId:
          type: string
          description: Profile the account is attached to
        externalId:
          type: string
          description: >-
            Account id on the platform (Instagram business account id / WhatsApp
            phone number id)
        username:
          type: string
          example: '@acme'
        displayName:
          type: string
          example: Acme
        accessToken:
          type: string
          description: Platform token (Instagram long-lived / WhatsApp system user)
        metadata:
          type: object
      required:
        - platform
        - profileId
        - externalId
        - username
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: sk_...
      type: http

````