Last Updated: November 21, 2025
Postman
API development and testing platform
Core Features
| Item | Description |
|---|---|
Request
|
HTTP request configuration |
Collection
|
Group of related requests |
Environment
|
Set of variables |
Test
|
Assertion script for responses |
Mock Server
|
Simulate API endpoints |
Monitor
|
Scheduled collection runs |
Documentation
|
Auto-generated API docs |
Request Types
| Item | Description |
|---|---|
GET
|
Retrieve data |
POST
|
Create new resource |
PUT
|
Update entire resource |
PATCH
|
Partial update |
DELETE
|
Remove resource |
OPTIONS
|
Get supported methods |
Test Script Examples
// Status code test
pm.test('Status is 200', function() {
pm.response.to.have.status(200);
});
// Response time test
pm.test('Response time < 200ms', function() {
pm.expect(pm.response.responseTime).to.be.below(200);
});
// JSON validation
pm.test('Has user property', function() {
const data = pm.response.json();
pm.expect(data).to.have.property('user');
});
// Set environment variable
pm.environment.set('token', pm.response.json().token);
Best Practices
- Use environment variables for different stages
- Write tests for all API endpoints
- Organize requests into collections
- Use pre-request scripts for dynamic data
💡 Pro Tips
Quick Reference
Use collection runner to automate API testing