Getting Started
<<<<<<< HEAD
Getting Started
=======
Installation Guide
048be57787cae533a398402c6cd4191351feef8d
This guide will help you start using the PizzaStack HTTP API. There is nothing to install -- PizzaStack is a REST API you call over HTTP from any language or tool.
Prerequisites
An HTTP client (Python
requests,curl, or any language with HTTP support)A PizzaStack API key (sign up at tomatopy.pizza)
Step 1: Get Your API Key
Sign up at tomatopy.pizza to receive your API key. You will use this key in the X-API-Key header on every request.
Step 2: Choose Your HTTP Client
PizzaStack works with any HTTP client. Here are common options:
Python:
requestslibrary (pip install requests)JavaScript:
fetchoraxiosCommand line:
curl
Step 3: Set Up a Session ID
Every request to PizzaStack requires an X-Session-ID header. A session groups related objects together (tomatoes, sauces, pizzas). Generate any unique string as your session ID -- a UUID works well.
Your First Request
Here is a complete example that acquires a tomato using Python:
Or using curl:
Verification
To verify your API key is working, make a request and check for a 200 status code:
Troubleshooting
Common Issues
401 Unauthorized
Verify your
X-API-Keyheader is set correctlyCheck that your API key has not expired
400 Bad Request
Ensure your JSON body includes all required fields
Check that
Content-Type: application/jsonis set
Missing X-Session-ID
Every request requires the
X-Session-IDheaderUse a consistent session ID for related operations
Getting Help
If you encounter any issues:
Check our API documentation
Join our Discord Community
Visit our Stack Overflow Tag
Next Steps
Last updated
Was this helpful?