API

Get instruction

Retrieve a single watch instruction by its numeric ID.

GET/instructions/{id}

Use this endpoint to fetch one instruction by ID. The response includes the original DSL script and the compiled rule JSON.

Path

idintegerrequiredpath

The numeric instruction ID.

Response

idinteger

Auto-generated instruction ID.

namestring

Unique rule name.

textstring

Original Watch DSL script text.

descriptionstring

Rule description from the DSL script, if provided.

dsl_jsonstring

Compiled rule JSON used during transaction evaluation.

created_atstring

ISO 8601 timestamp of when the instruction was created.

updated_atstring

ISO 8601 timestamp of when the instruction was last updated.