Python
import requests url = "https://api.memic.ai/api/v1/prompts/{name}" headers = {"X-API-Key": "<api-key>"} response = requests.get(url, headers=headers) print(response.text)
{ "name": "<string>", "body": "<string>", "version_number": 123, "updated_at": "2023-11-07T05:31:56Z", "variables": [ "<string>" ] }
Fetch the currently-live version of a managed prompt by name. Prompt names are scoped to the environment resolved from your API key.
Memic API key. Every key is bound to exactly one environment — get one from the Memic dashboard under API Keys.
Successful Response
Wire shape returned by GET /sdk/prompts/{name}.