---
agentTools:
  projectIndex: https://wiwink.readme.io/llms.txt
---

# Get State

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Wiwink API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://developers.wiwink.com/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "<your-api-key>"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/states/{id}": {
      "get": {
        "summary": "Get State",
        "description": "",
        "operationId": "get-state",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Id of the state.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "with[]",
            "in": "query",
            "description": "Add relation to state. Posible values are 'country'.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": {\n        \"id\": 6,\n        \"country_id\": 6,\n        \"name\": \"Asturias\"\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 6,
                          "default": 0
                        },
                        "country_id": {
                          "type": "integer",
                          "example": 6,
                          "default": 0
                        },
                        "name": {
                          "type": "string",
                          "example": "Asturias"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true,
  "_id": "5fc95bf5cedbb60012732d63:60c73e74b5ac350016b4ed80"
}
```