Collections
Collections help you organize, save, and share related API requests.
Overview
Creating a Collection
- Go to the Collections tab in the sidebar
- Click New Collection
- Enter a name for your collection
- Click Create
Saving Requests
Save Current Request
- Configure your request (URL, method, headers, body)
- Click the Save button
- Select a collection from the dropdown
- The request is added to the collection
Request Naming
Requests are automatically named based on:
- The request name field (if set)
- The URL path (e.g., "GET /users")
Using Saved Requests
Loading a Request
- Expand a collection in the sidebar
- Click on a request
- A new tab opens with the request loaded
Editing a Request
- Load the request
- Make your changes
- Click Save and select the same collection
Collection Actions
Right-click on a collection to access:
| Action | Description |
|---|---|
| Run Tests | Open test runner with collection |
| Start Mock Server | Generate mock server from collection |
| Delete | Remove collection and all requests |
Organization
Naming Conventions
Use descriptive names:
User Management APIAuthentication EndpointsPayment Processing
Grouping Related Requests
Keep related endpoints together:
📁 E-commerce API
├── GET /products
├── POST /products
├── GET /products/:id
├── GET /orders
├── POST /orders
└── GET /orders/:id
Import & Export
See Import & Export for:
- Importing from Postman
- Importing from OpenAPI/Swagger
- Exporting collections
Request Details
Each saved request stores:
| Field | Description |
|---|---|
| Name | Request identifier |
| Protocol | HTTP, WebSocket, etc. |
| Method | GET, POST, etc. |
| URL | Endpoint URL |
| Headers | Request headers |
| Parameters | Query parameters |
| Body | Request body |
Best Practices
Logical Grouping
Group requests by resource or feature:
- All user endpoints in "Users" collection
- All auth endpoints in "Authentication" collection
Variables in Collections
Use variables in saved requests for portability:
{{API_URL}}/users/{{USER_ID}}
Version Control
Keep collections organized by API version:
API v1 - UsersAPI v2 - Users
Collection Workflow
Development Flow
- Create Collection: Organize by feature/resource
- Add Requests: Save working requests
- Test Locally: Verify against real endpoints
- Run Tests: Automate with test runner
- Generate Mocks: Create mock server for development
Team Collaboration
Share collections by:
- Exporting the collection
- Sharing the JSON file
- Team members import into their Istek