Zatomic API

Retrieve Prompt

Retrieves a prompt from the given workspace.

Expands
versions Retrieves all versions of the prompt.
scoring Retrieves the scoring object for each version of the prompt.
heatmap Retrieves the heatmap object for each version of the prompt.
balance Retrieves the balance object for each version of the prompt.
risk Retrieves the risk object for each version of the prompt.
Endpoint
GET https://api.zatomic.ai/v1/prompts/{promptId}

// Examples
GET https://api.zatomic.ai/v1/prompts/prm_2qRzu8geIvfudcJTwP0pur4TbMJ
GET https://api.zatomic.ai/v1/prompts/prm_2qRzu8geIvfudcJTwP0pur4TbMJ?expand=versions
GET https://api.zatomic.ai/v1/prompts/prm_2qRzu8geIvfudcJTwP0pur4TbMJ?expand=scoring
GET https://api.zatomic.ai/v1/prompts/prm_2qRzu8geIvfudcJTwP0pur4TbMJ?expand=heatmap
GET https://api.zatomic.ai/v1/prompts/prm_2qRzu8geIvfudcJTwP0pur4TbMJ?expand=balance
GET https://api.zatomic.ai/v1/prompts/prm_2qRzu8geIvfudcJTwP0pur4TbMJ?expand=risk

Endpoint Response

A successful call returns a response that contains the prompt object.

HTTP Status Codes
200 OK The prompt was retrieved.
404 Not Found The prompt didn't exist.
500 Internal Server Error Something went wrong on Zatomic's end.