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

# Connecter (ou reconnecter) un compte social



## OpenAPI

````yaml /api-reference/openapi.json post /v1/accounts/connect
openapi: 3.0.0
info:
  title: orsay-api
  description: API unifiée réseaux sociaux — Instagram & WhatsApp
  version: 0.1.0
  contact: {}
servers:
  - url: https://api.plugkit.co
    description: Production
security: []
tags: []
paths:
  /v1/accounts/connect:
    post:
      tags:
        - accounts
      summary: Connecter (ou reconnecter) un compte social
      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
        profileId:
          type: string
          description: Profil auquel rattacher le compte
        externalId:
          type: string
          description: >-
            ID du compte côté plateforme (IG business account id / WA phone
            number id)
        username:
          type: string
          example: '@acme'
        displayName:
          type: string
          example: Acme
        accessToken:
          type: string
          description: Token plateforme (long IG / système WA)
        metadata:
          type: object
      required:
        - platform
        - profileId
        - externalId
        - username
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: sk_...
      type: http

````