---
updatedAt: 2025-07-11T10:55:13.000Z
agentTools:
  projectIndex: https://developers.kommo.com/llms.txt
---

# Get the widget info by its code

This method allows getting the information on a public widget or a private widget uploaded by the current user.

**Limitations\&#xA;** The method is available for all account users.

**Data type header when the request is successful**\
Content-Type: application/hal+json

**Data type header in case of an error**\
Content-Type: application/problem+json

**Response parameters**\
Method returns an array of widget objects.

| Parameter                         | Data type     | Description                                                                             |
| :-------------------------------- | :------------ | :-------------------------------------------------------------------------------------- |
| id                                | int           | Widget ID                                                                               |
| code                              | string        | Widget code                                                                             |
| version                           | string        | Widget version                                                                          |
| rating                            | string\|float | Widget rating (rating system doesn't exist on Kommo yet)                                |
| settings\_template                | array         | An array of widget settings fields                                                      |
| settings\_template\[0]            | obj           | Widget settings field                                                                   |
| settings\_template\[key]          | string        | Field value key                                                                         |
| settings\_template\[name]         | string        | Widget settings field name                                                              |
| settings\_template\[type]         | string        | Widget settings field data type (text, pass, custom, users, or users\_lp)               |
| settings\_template\[is\_required] | bool          | Shows whether filling in the  is mandatory                                              |
| is\_lead\_source                  | bool          | Shows whether a widget can be set as a lead source                                      |
| is\_work\_with\_dp                | bool          | Shows whether a widget is available in Digital Pipeline                                 |
| is\_crm\_template                 | bool          | Shows whether a widget is a CRM template                                                |
| client\_uuid                      | string\|null  | UUID of the widget’s oAuth integration                                                  |
| is\_active\_in\_account           | bool          | Shows whether the widget is installed in the account                                    |
| pipeline\_id                      | int           | Pipeline ID where a widget is set as a lead source                                      |
| settings                          | array         | Widget settings. The key is returned only when an integration requests its own settings |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "kommo-api-references",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://{subdomain}.kommo.com",
      "variables": {
        "subdomain": {
          "default": "subdomain"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v4/widgets/{widget_code}": {
      "get": {
        "summary": "Getting the widget info by its code",
        "description": "This method allows getting the information on a public widget or a private widget uploaded by the current user.",
        "operationId": "widget-by-code",
        "parameters": [
          {
            "name": "widget_code",
            "in": "path",
            "description": "Widget code",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Request successful": {
                    "value": "{\n    \"id\": 1234567,\n    \"code\": \"birthday\",\n    \"version\": \"0.0.13\",\n    \"rating\": \"0\",\n    \"settings_template\": [\n        {\n            \"key\": \"bd\",\n            \"name\": \"custom\",\n            \"type\": \"custom\",\n            \"is_required\": false\n        }\n    ],\n    \"is_lead_source\": false,\n    \"is_work_with_dp\": false,\n    \"is_crm_template\": false,\n    \"client_uuid\": null,\n    \"is_active_in_account\": false,\n    \"pipeline_id\": null,\n    \"_links\": {\n        \"self\": {\n            \"href\": \"https://subdomain.kommo.com/api/v4/widgets/birthday\"\n        }\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 1234567,
                      "default": 0
                    },
                    "code": {
                      "type": "string",
                      "example": "birthday"
                    },
                    "version": {
                      "type": "string",
                      "example": "0.0.13"
                    },
                    "rating": {
                      "type": "string",
                      "example": "0"
                    },
                    "settings_template": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "example": "bd"
                          },
                          "name": {
                            "type": "string",
                            "example": "custom"
                          },
                          "type": {
                            "type": "string",
                            "example": "custom"
                          },
                          "is_required": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          }
                        }
                      }
                    },
                    "is_lead_source": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "is_work_with_dp": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "is_crm_template": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "client_uuid": {},
                    "is_active_in_account": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "pipeline_id": {},
                    "_links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "object",
                          "properties": {
                            "href": {
                              "type": "string",
                              "example": "https://subdomain.kommo.com/api/v4/widgets/birthday"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "User is not authorized": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "text/plain": {
                "examples": {
                  "Widget isn’t found or is unavailable": {
                    "value": ""
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```