List the bindings for a Workers script.
/zones/{zone_identifier}/workers/script/bindings
get
Worker Binding (Deprecated)
worker-binding-(-deprecated)-list-bindings
null null [
{
"in": "path",
"name": "zone_identifier",
"required": true,
"schema": {
"description": "Identifier",
"example": "023e105f4ecef8ad9ca31a8372d0c353",
"maxLength": 32,
"readOnly": true,
"type": "string"
}
}
] null {
"200": {
"content": {
"application/json": {
"schema": {
"allOf": [
{
"properties": {
"errors": {
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
},
"messages": {
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
},
"result": {
"anyOf": [
{
"type": "object"
},
{
"items": {},
"type": "array"
},
{
"type": "string"
}
]
},
"success": {
"description": "Whether the API call was successful",
"enum": [
true
],
"example": true,
"type": "boolean"
}
},
"required": [
"success",
"errors",
"messages",
"result"
],
"type": "object"
},
{
"properties": {
"result": {
"items": {
"oneOf": [
{
"properties": {
"name": {
"description": "A JavaScript variable name for the binding.",
"example": "myBinding",
"readOnly": true,
"type": "string"
},
"namespace_id": {
"description": "Namespace identifier tag.",
"example": "0f2ac74b498b48028cb68387c421e279",
"maxLength": 32,
"readOnly": true,
"type": "string"
},
"type": {
"description": "The class of resource that the binding provides.",
"enum": [
"kv_namespace"
],
"example": "kv_namespace",
"type": "string"
}
},
"required": [
"name",
"type",
"namespace_id"
],
"type": "object"
},
{
"properties": {
"name": {
"description": "A JavaScript variable name for the binding.",
"example": "myBinding",
"readOnly": true,
"type": "string"
},
"type": {
"description": "The class of resource that the binding provides.",
"enum": [
"wasm_module"
],
"example": "wasm_module",
"type": "string"
}
},
"required": [
"name",
"type"
],
"type": "object"
}
]
},
"type": "array"
}
},
"type": "object"
}
]
}
}
},
"description": "List Bindings response"
},
"4XX": {
"content": {
"application/json": {
"schema": {
"allOf": [
{
"allOf": [
{
"properties": {
"errors": {
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
},
"messages": {
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
},
"result": {
"anyOf": [
{
"type": "object"
},
{
"items": {},
"type": "array"
},
{
"type": "string"
}
]
},
"success": {
"description": "Whether the API call was successful",
"enum": [
true
],
"example": true,
"type": "boolean"
}
},
"required": [
"success",
"errors",
"messages",
"result"
],
"type": "object"
},
{
"properties": {
"result": {
"items": {
"oneOf": [
{
"properties": {
"name": {
"description": "A JavaScript variable name for the binding.",
"example": "myBinding",
"readOnly": true,
"type": "string"
},
"namespace_id": {
"description": "Namespace identifier tag.",
"example": "0f2ac74b498b48028cb68387c421e279",
"maxLength": 32,
"readOnly": true,
"type": "string"
},
"type": {
"description": "The class of resource that the binding provides.",
"enum": [
"kv_namespace"
],
"example": "kv_namespace",
"type": "string"
}
},
"required": [
"name",
"type",
"namespace_id"
],
"type": "object"
},
{
"properties": {
"name": {
"description": "A JavaScript variable name for the binding.",
"example": "myBinding",
"readOnly": true,
"type": "string"
},
"type": {
"description": "The class of resource that the binding provides.",
"enum": [
"wasm_module"
],
"example": "wasm_module",
"type": "string"
}
},
"required": [
"name",
"type"
],
"type": "object"
}
]
},
"type": "array"
}
},
"type": "object"
}
]
},
{
"properties": {
"errors": {
"allOf": [
{
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
}
],
"example": [
{
"code": 7003,
"message": "No route for the URI"
}
],
"minLength": 1
},
"messages": {
"allOf": [
{
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
}
],
"example": []
},
"result": {
"enum": [
null
],
"nullable": true,
"type": "object"
},
"success": {
"description": "Whether the API call was successful",
"enum": [
false
],
"example": false,
"type": "boolean"
}
},
"required": [
"success",
"errors",
"messages",
"result"
],
"type": "object"
}
]
}
}
},
"description": "List Bindings response failure"
}
} [
{
"api_token": []
},
{
"api_email": [],
"api_key": []
}
]