Recipes
A recipe is a guide page for one task, like taking a payment or uploading a file. Numbered steps on the left, the code for the current step on the right, and it stays in view while you scroll.
Every plan.
Step 2 of 3: Upload a photo cURL | Node | Python
curl -X POST \"https://petstore3.swagger.io/api/v3/pet/10/uploadImage" \-H "Authorization: Bearer $TOKEN" \-H "Content-Type: application/octet-stream" \--data-binary @dog.jpg
How a recipe works
- Numbered steps
- Each step has a title and text. Add, remove and reorder steps in the docs editor.
- Code beside the text
- On wide screens the code sits on the right and follows the step you are reading. On phones it shows under each step.
- Tabs per language
- cURL, Node, TypeScript, Python, Ruby, PHP or JSON. Readers copy the code with one click.
- Linked to endpoints
- A step can point at an endpoint in your reference, so readers jump to its parameters and the playground.
Add one
- 1
Open the docs editor
In a guide section, click Add page and choose Recipe. - 2
Write the steps
Give each step a short title, a few sentences and the code for it. - 3
Link the endpoint
Pick the endpoint the step calls, if there is one.
Questions
How is a recipe different from a guide page?+
A guide page is free-form text. A recipe is a fixed shape: numbered steps, each with code beside it. Use it for tasks with a clear order.
Which plan has recipes?+
Every plan, including Free.
What should I write recipes about?+
Start with the searches that found nothing in [Insights](/features/analytics). Those are the tasks readers came for and could not find.
See your docs in a minute
Paste the link to your OpenAPI file. Free for one API, no card needed.