Skip to main content
GET
Retrieve a routine

Authorizations

Authorization
string
header
required

Secret key (sk_live_...)

Path Parameters

routine_id
string
required

Unique identifier for the routine (prefixed with rtn_).

Pattern: ^rtn_
Example:

"rtn_AbC123xYz456"

Response

OK

A routine: how a task runs on one source.

id
string
required

Unique identifier for the routine, prefixed with rtn_.

Pattern: ^rtn_
Example:

"rtn_AbC123xYz456"

object
string
required

Always routine.

task_id
string
required

The task this routine runs for. Prefixed with task_.

source_id
string
required

The source this routine runs on. Prefixed with src_.

name
string
required

Display name for the routine.

type
enum<string>
required

How the routine runs: playwright runs your code, agent lets the Deck agent complete the task.

Available options:
playwright,
agent
created_at
string<date-time>
required

ISO 8601 timestamp of when the resource was created.

Example:

"2026-09-22T12:00:00Z"

updated_at
string<date-time>
required

ISO 8601 timestamp of when the resource was last updated.

Example:

"2026-09-22T12:00:00Z"

playwright
null | object

The routine's code. Present when type is playwright.

version
null | integer

The version number. Present only on a version snapshot.

request_id
null | string

Unique identifier for the API request. Include this when contacting support.