> ## Documentation Index
> Fetch the complete documentation index at: https://nango-wari-integration-config-credentials-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a reconnect session

> Create a new connect session to reconnect to a specific integration. The token is used like a standard connect session.
Only connections created with a connect session are compatible with this endpoint.
Use this method when a user needs to input new credentials or to manually refresh token.


<Info>
  Requires an API key with the `environment:connect_sessions:write` scope. [Learn more about API key scopes](/reference/backend/http-api/api-keys#scopes).
</Info>


## OpenAPI

````yaml POST /connect/sessions/reconnect
openapi: 3.1.0
info:
  title: Nango API
  description: Nango API specs used to authorize & sync data with external APIs.
  version: 1.0.0
servers:
  - url: https://api.nango.dev
    description: Production server
  - url: http://localhost:3003
    description: Local server
security:
  - bearerAuth: []
externalDocs:
  url: https://nango.dev/docs/reference/backend/http-api/authentication
paths:
  /connect/sessions/reconnect:
    post:
      summary: Reconnect with connect session
      description: >
        Create a new connect session to reconnect to a specific integration. The
        token is used like a standard connect session.

        Only connections created with a connect session are compatible with this
        endpoint.

        Use this method when a user needs to input new credentials or to
        manually refresh token.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConnectSessionReconnectInput'
      responses:
        '201':
          description: Successfully created a connect session
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/ConnectSession'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    ConnectSessionReconnectInput:
      type: object
      required:
        - connection_id
        - integration_id
      properties:
        connection_id:
          type: string
        integration_id:
          type: string
        tags: 7d7dfde3-b37c-4986-99b2-34613fd47ef1
        end_user: 40aa58e7-2583-4d0b-af62-7a27c8c5e8bb
        organization: 1a9ecefa-f582-42a5-9dca-91c9c02d1055
        integrations_config_defaults: 23df305a-ef0f-4e08-be0f-44b0e6d14034
        overrides: 1d4039c1-64a7-48d6-87d5-e0d8323afc78
        webhook_url_override: d5dd1e6f-4030-4e78-9200-0b2601fb9b30
    ConnectSession:
      type: object
      required:
        - token
        - expires_at
      properties:
        token:
          type: string
          description: The connect session token
        connect_link:
          type: string
          description: >-
            The URL to directly connect the user to the integration. This can be
            used as a magic link.
        expires_at:
          type: string
          description: When the token expires
          format: date-time
    StdError:
      type: object
      additionalProperties: false
      properties:
        error:
          type: object
          additionalProperties: false
          required:
            - code
          properties:
            code:
              type: string
            message:
              type: string
            errors:
              type: array
              items:
                type: object
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StdError'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StdError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An Environment API key from your Nango environment, or an Account API
        key for account-level endpoints.

````