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

# Link Device Pin

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Consumers",
    "version": "1.0.0",
    "description": ""
  },
  "servers": [
    {
      "url": "https://api.zype.com/"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "api_key",
        "in": "query"
      }
    }
  },
  "paths": {
    "/pin/link": {
      "put": {
        "summary": "Link Device Pin",
        "description": "",
        "tags": [
          "Device Linking"
        ],
        "operationId": "linkDevicePin",
        "parameters": [
          {
            "name": "consumer_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of consumer to link device to"
          },
          {
            "name": "pin",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The value for the acquired device pin"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "title": "DevicePinResponse",
                  "type": "object",
                  "properties": {
                    "response": {
                      "title": "DevicePin",
                      "type": "object",
                      "properties": {
                        "_id": {
                          "type": "string"
                        },
                        "consumer_id": {
                          "description": "",
                          "type": "string"
                        },
                        "created_at": {
                          "description": "",
                          "type": "string"
                        },
                        "deleted_at": {
                          "description": "",
                          "type": "string"
                        },
                        "linked_device_id": {
                          "description": "",
                          "type": "string"
                        },
                        "pin": {
                          "description": "",
                          "type": "string"
                        },
                        "pin_expiration": {
                          "description": "",
                          "type": "string"
                        },
                        "updated_at": {
                          "description": "",
                          "type": "string"
                        },
                        "linked true": {
                          "description": "",
                          "type": "boolean"
                        },
                        "subscription_count": {
                          "description": "",
                          "type": "number"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Device Pin not found",
            "content": {
              "application/json": {
                "schema": {
                  "title": "NotFound",
                  "type": "object",
                  "required": [
                    "message"
                  ],
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```