---
agentTools:
  projectIndex: https://mk-bank.readme.io/llms.txt
---

# Remove Pix key

This endpoint allows you to delete a specific PIX key associated with the account. Provide the ID of the PIX key in the request URL to delete it.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "MK Bank Account API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://core-h.mkbank.com.br/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/pix_keys/{id}": {
      "delete": {
        "summary": "Remove Pix key",
        "description": "This endpoint allows you to delete a specific PIX key associated with the account. Provide the ID of the PIX key in the request URL to delete it.",
        "operationId": "remove-pix-key",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Pix Key ID",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"id\": 34,\n    \"account_id\": 1060,\n    \"type\": \"EVP\",\n    \"value\": \"1aaaa632-bf08-4696-a624-a286464eee1e\",\n    \"status\": \"INACTIVE\",\n    \"correlation_id\": \"B20230425162032903082535393A62BC\",\n    \"start_timestamp\": 1682450432257,\n    \"end_timestamp\": 1682450433067,\n    \"created_at\": \"2023-04-25T19:20:33.000000Z\",\n    \"updated_at\": \"2023-04-25T19:59:05.000000Z\",\n    \"display_value\": \"1aaaa632-bf08-4696-a624-a286464eee1e\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 34,
                      "default": 0
                    },
                    "account_id": {
                      "type": "integer",
                      "example": 1060,
                      "default": 0
                    },
                    "type": {
                      "type": "string",
                      "example": "EVP"
                    },
                    "value": {
                      "type": "string",
                      "example": "1aaaa632-bf08-4696-a624-a286464eee1e"
                    },
                    "status": {
                      "type": "string",
                      "example": "INACTIVE"
                    },
                    "correlation_id": {
                      "type": "string",
                      "example": "B20230425162032903082535393A62BC"
                    },
                    "start_timestamp": {
                      "type": "integer",
                      "example": 1682450432257,
                      "default": 0
                    },
                    "end_timestamp": {
                      "type": "integer",
                      "example": 1682450433067,
                      "default": 0
                    },
                    "created_at": {
                      "type": "string",
                      "example": "2023-04-25T19:20:33.000000Z"
                    },
                    "updated_at": {
                      "type": "string",
                      "example": "2023-04-25T19:59:05.000000Z"
                    },
                    "display_value": {
                      "type": "string",
                      "example": "1aaaa632-bf08-4696-a624-a286464eee1e"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"message\": \"Resource not found\",\n    \"code\": 0,\n    \"data\": []\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Resource not found"
                    },
                    "code": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6297b52a229a9b00142bff3c:62a77e7b5befdd006f30171d"
}
```