Skip to content
Start here

Tail

List Tails
GET/accounts/{account_id}/workers/scripts/{script_name}/tails
Start Tail
POST/accounts/{account_id}/workers/scripts/{script_name}/tails
Delete Tail
DELETE/accounts/{account_id}/workers/scripts/{script_name}/tails/{id}
ModelsExpand Collapse
ConsumerScript { service, environment, namespace }

A reference to a script that will consume logs from the attached Worker.

service: string

Name of Worker that is to be the consumer.

environment: optional string

Optional environment if the Worker utilizes one.

namespace: optional string

Optional dispatch namespace the script belongs to.

TailGetResponse { id, expires_at, url }
id: string

Identifier.

maxLength32
expires_at: string
url: string
TailCreateResponse { id, expires_at, url }
id: string

Identifier.

maxLength32
expires_at: string
url: string
TailDeleteResponse { errors, messages, success }
errors: array of { code, message, documentation_url, source }
code: number
minimum1000
message: string
documentation_url: optional string
source: optional { pointer }
pointer: optional string
messages: array of { code, message, documentation_url, source }
code: number
minimum1000
message: string
documentation_url: optional string
source: optional { pointer }
pointer: optional string
success: true

Whether the API call was successful.