HTTP Requests
Astraio supports all standard HTTP methods and request configurations.
Supported Methods
GET— Retrieve dataPOST— Create resourcesPUT— Update resources (full replacement)PATCH— Partial updatesDELETE— Remove resourcesHEAD— Same as GET but no bodyOPTIONS— CORS preflight requests
Request Configuration
URL
Enter the full URL including protocol:
https://api.example.com/v1/usersHeaders
Click the Headers tab to add custom headers:
| Header | Description |
|---|---|
Content-Type | Request body format |
Authorization | Bearer tokens, API keys |
Accept | Expected response format |
Query Parameters
Click Params to add URL query parameters:
?page=1&limit=10&sort=descRequest Body
For POST, PUT, PATCH requests, select a body type:
- JSON —
application/json - Form —
multipart/form-dataorapplication/x-www-form-urlencoded - Raw — Plain text, XML, etc.
- Binary — File uploads
Response Inspector
After sending a request, the response panel shows:
- Status Code —
200 OK,404 Not Found, etc. - Headers — Response headers from the server
- Body — Syntax-highlighted JSON, HTML, or raw text
- Timing — Total request duration in ms
Tips
- Use
Cmd+Enter(macOS) orCtrl+Enter(Windows/Linux) to send requests quickly - Responses are automatically formatted and syntax-highlighted
- Copy response body with one click
Last updated on