cURL
curl --request GET \ --url https://www.getsnippets.ai/api/prompts/snippet/variation \ --header 'Authorization: Bearer <token>'
200
Example
{ "success": true, "data": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "content": { "type": "plaintext", "content": "Hello, world!" }, "snippet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "variant_order_index": 123, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }, "usage": { "remainingRequests": 123 }}
Retrieves a specific variation of a snippet. API Cost: 1 request.
API key authentication using Bearer token. Include your API key in the Authorization header.
The ID of the parent snippet
The ID of the variation
Variation retrieved successfully
true
Show child attributes