Sending Your First API Request
Building your first API collection in CAPost requires only a few clicks.
- Launch CAPost: Unlock your encrypted vault with your Master Passphrase.
- Create a Collection: Click + New Collection in the side panel to start a new workspace.
- Initialize Environments: Create two simple environment presets:
DevelopmentandStaging.environment: Development variables: - key: BASE_URL value: "http://localhost:8080/api/v1" - key: API_TOKEN value: "{{vault://secrets/dev-access-token}}" - Compose the Request: Choose a
GETorPOSTverb, and use variable injection for base URLs:POST {{BASE_URL}}/orders - Run the Execution Runner: Click the Execute button. CAPost will resolve environment variables, inject authenticated headers, and dispatch the request instantly.
- Automated Test Assertions: Add test conditions on the right panel:
- Status code equals
200 - Response header
Content-Typeisapplication/json - JSON body field
$.data.statusequals"created"
- Status code equals