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

# Refresh MCP Connection Status

> Refresh a connection’s status after OAuth sign-in. Use the connection once the returned status is `success`.

### Endpoint

**PATCH** `/v3/tools/credentials/{credential_id}/status`

### Description

Refresh a connection’s status after OAuth sign-in. Use the connection once the returned status is `success`.

### Authentication

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

### Request

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

### Response

Returns `credential_id`, `status`, and `error` when available.


## OpenAPI

````yaml patch /tools/credentials/{credential_id}/status
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}/status:
    patch:
      summary: Refresh MCP Connection Status
      description: >-
        Refresh a connection’s status after OAuth sign-in. Use the connection
        once the returned status is `success`.
      parameters:
        - name: credential_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the named connection.
      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
                  error:
                    type: string
                    nullable: true
        '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.