Your First Request
Let's send your first API request using Nidra. This guide will walk you through creating a simple GET request.
Creating a Request
- Open Nidra and create a new collection or use the default collection
- Click "New Request" to create a new HTTP request
- Enter the URL: Try a simple API like
https://api.github.com/users/octocat - Select the HTTP method: GET is selected by default
- Click "Send" to execute the request
Understanding the Response
After sending the request, you'll see:
- Status Code: The HTTP status code (e.g., 200 OK)
- Response Time: How long the request took
- Response Size: The size of the response
- Response Body: The actual response data (JSON, XML, HTML, etc.)
- Headers: Response headers from the server
Adding Headers
Many APIs require headers for authentication or content negotiation:
- Click on the Headers tab
- Add a header (e.g.,
Accept: application/json) - Send the request again
Adding Query Parameters
For GET requests with query parameters:
- Click on the Params tab
- Add key-value pairs (e.g.,
per_page=10) - Nidra automatically updates the URL
- Send the request
Saving Your Request
Don't lose your work - save the request for later:
- Click the Save button
- Give your request a name
- Choose a collection to save it in
Next Steps
Now that you've sent your first request:
- Take a quick tour of Nidra features
- Learn about Collections
- Explore Environments for managing variables