Skip to main content
POST
/
doc-agent
/
api
/
v1
/
capability
/
division
/
lookup
cURL
curl --request POST \
  --url https://agents.textin.com/doc-agent/api/v1/capability/division/lookup \
  --header 'Content-Type: application/json' \
  --header 'x-ti-app-id: <x-ti-app-id>' \
  --header 'x-ti-secret-code: <x-ti-secret-code>' \
  --data '{
  "name": "成都"
}'
{
  "code": 200,
  "data": {
    "divisions": [
      {
        "city_code": "510100",
        "city_name": "成都市",
        "code": "510100",
        "name": "成都市",
        "preferred_code": "510100",
        "province_code": "510000",
        "province_name": "四川省"
      }
    ]
  },
  "message": "OK"
}

Headers

x-ti-app-id
string
required
x-ti-secret-code
string
required

Body

application/json
name
string

行政区划名称(支持省/市/县模糊匹配,如 "成都"、"北京"、"南山区")

Response

200 - application/json

OK

code
integer

业务状态码

Example:

200

data
object
message
string

状态说明

Example:

"OK"