Skip to main content
Version: 2.0

Get Instruction API Definition

The Get Instruction API enables you to retrieve the full definition of a specific behavioral instruction by its ID. This allows you to inspect the instruction's template, metadata, and version history.

Get Instruction Request and Response

To retrieve an instruction, send a GET request to /v2/instructions/{instruction_id}. The instruction_id is the unique identifier of the instruction you wish to retrieve.

The response contains the instruction's id, name, description, template, enabled status, version, and metadata.

Example Request

EXAMPLE REQUEST

Code example with bash syntax.
1

Example Response

EXAMPLE RESPONSE

Code example with json syntax.
1

Error Responses

The API returns standard HTTP error codes with detailed error information:

HTTP CodeError CodeDescription
400invalid_requestInvalid instruction_id format
401unauthorizedInvalid or missing API key
403forbiddenInsufficient permissions for accessing this instruction
404not_foundInstruction with the specified ID does not exist
429rate_limit_exceededRequest rate limit exceeded