WorkerWorker Domain

Get a Domain

GET
Gets a Worker domain.

Path parameters

domain_identifierstringRequired
Identifer of the Worker Domain.
account_identifierstringRequired

Response

This endpoint returns an object
errors
list of objects
messages
list of objects
success
boolean
Whether the API call was successful
result
objectOptional
GET
1curl https://api.cloudflare.com/client/v4/accounts/9a7806061c88ada191ed06f989cc3dac/workers/domains/dbe10b4bc17c295377eabd600e1787fd \
2 -H "Authorization: Bearer <token>"
200Retrieved
1{
2 "errors": [
3 {
4 "code": 1,
5 "message": "string"
6 }
7 ],
8 "messages": [
9 {
10 "code": 1,
11 "message": "string"
12 }
13 ],
14 "success": true,
15 "result": {
16 "environment": "production",
17 "hostname": "foo.example.com",
18 "id": "dbe10b4bc17c295377eabd600e1787fd",
19 "service": "foo",
20 "zone_id": "593c9c94de529bbbfaac7c53ced0447d",
21 "zone_name": "example.com"
22 }
23}