Import Collection
Option 1: Direct Import
- Open Postman
- Click Import in the top left
- Select Link tab
- Paste this URL:
- Click Continue and Import
Option 2: Download and Import
- Download the collection file:
- Open Postman
- Click Import
- Select the downloaded
collection.jsonfile
Environment Setup
Create Environment
- Click Environments in the left sidebar
- Click + to create a new environment
- Name it “g-tateth API”
Configure Variables
Add these variables:| Variable | Initial Value | Current Value |
|---|---|---|
base_url | https://api.g-tateth.com | https://api.g-tateth.com |
api_key | your-api-key-here | your-api-key-here |
tenant_id | your-tenant-id | your-tenant-id |
Set Active Environment
- Select your environment from the dropdown in the top right
- Make sure it’s set as the active environment
Authentication
The collection uses environment variables for authentication. Set yourapi_key in the environment variables.
All requests automatically include:
Using the Collection
Run Individual Requests
- Navigate to the collection folder
- Select a request
- Click Send
- View the response in the bottom panel
Run Collection Tests
- Click on the collection name
- Click Run button
- Select requests to run
- Click Run g-tateth API
- View test results
Pre-request Scripts
Some requests include pre-request scripts that automatically:- Set required headers
- Generate timestamps
- Calculate signatures
- Set dynamic values
Tests
Many requests include automated tests that verify:- Response status codes
- Response structure
- Data types
- Required fields
Collection Structure
Examples
Example 1: Create a Conversation
- Navigate to Conversations > Create Conversation
- Review the request body:
- Click Send
- Copy the
conversationIdfrom the response - Use it in subsequent requests
Example 2: Send a Message
- Navigate to Conversations > Send Message
- Set
conversationIdin the URL path - Set message body:
- Click Send
Troubleshooting
Authentication Errors
If you get 401 errors:- Check that
api_keyis set in environment variables - Verify the API key is valid
- Ensure the environment is active
Variable Not Found
If you see{{variable}} in requests:
- Check that all required variables are set
- Verify the environment is selected
- Update variable values if needed
CORS Errors
If you encounter CORS errors:- Use Postman Desktop app (not browser)
- Or disable CORS in your browser (development only)
Updates
The collection is updated regularly. To get the latest version:- Delete the old collection
- Re-import from the URL above
- Or use Postman’s Sync feature
Support
Need help with Postman? Contact us:- Email: support@g-tateth.com
- Documentation: https://docs.g-tateth.com