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

# Reconnect MCP OAuth Connection

> Restart OAuth authorization-code sign-in on an existing connection. Open the returned `auth_url` in a browser, then refresh the connection status.

### Endpoint

**POST** `/v3/tools/credentials/{credential_id}/reconnect`

### Description

Restart OAuth authorization-code sign-in on an existing connection. Open the returned `auth_url` in a browser, then refresh the connection status.

### Authentication

API key (`x-api-key`) in the header.

### Request

```bash theme={null}
curl -X POST 'https://agent-prod.studio.lyzr.ai/v3/tools/credentials/<CREDENTIAL_ID>/reconnect' \
  -H "x-api-key: $LYZR_API_KEY"
```

### Response

Returns `credential_id`, `status: "pending"`, and `auth_url`.


## OpenAPI

````yaml post /tools/credentials/{credential_id}/reconnect
openapi: 3.0.3
info:
  title: Lyzr MCP Connections API
  version: 1.0.0
servers:
  - url: https://agent-prod.studio.lyzr.ai/v3
security:
  - ApiKeyAuth: []
paths:
  /tools/credentials/{credential_id}/reconnect:
    post:
      summary: Reconnect MCP OAuth Connection
      description: >-
        Restart OAuth authorization-code sign-in on an existing connection. Open
        the returned `auth_url` in a browser, then refresh the connection
        status.
      parameters:
        - name: credential_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the named connection.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                redirect_url:
                  type: string
                  description: Optional allowed destination after sign-in.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  credential_id:
                    type: string
                    description: ID of the named connection.
                  status:
                    type: string
                    enum:
                      - success
                      - pending
                      - failed
                  auth_url:
                    type: string
                    description: Browser sign-in URL.
        '400':
          description: Invalid request
        '401':
          description: Authentication required
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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