Installation and Setup
Getting started with ATP involves installing the appropriate SDK for your programming language, configuring your environment, and making your first test connection.SDK Installation
ATP offers client libraries for multiple programming languages. Choose the one that best suits your project:Python
JavaScript/Node.js
Authentication Setup
ATP uses API keys for authentication. You’ll need two types of credentials:- Service API Key - For sending notifications
- Client Token - For receiving notifications (if you’re building a client application)
Obtaining API Keys
- Register for an ATP account at https://atp.example.com/signup
- Navigate to the “API Keys” section in your dashboard
- Generate a new Service API Key for your service
- Store this key securely - it won’t be displayed again
Environment Configuration
It’s best practice to store your API keys in environment variables:Basic Client Configuration
Once you have your API key, you can initialize the ATP client:Python
JavaScript/Node.js
Service Registration
Before sending notifications, you need to register your service with the ATP server. This only needs to be done once per service:service_id
securely - you’ll need it for configuration.
Verification Test
Let’s verify your setup by sending a test notification:Testing Webhook Responses
If you want to test the full workflow including responses, you’ll need:- A publicly accessible webhook endpoint (use tools like ngrok for development)
- A test client application to respond to the notification
Common Setup Issues
API Key Errors
If you receive authentication errors:- Verify your API key is correct and not expired
- Ensure you’re using the right key type (test vs. live)
- Check that your environment variables are properly set
Webhook Configuration
For webhook delivery issues:- Ensure your webhook URL is publicly accessible
- Verify your server properly responds with a 200 OK status
- Check for firewall or security settings that might block incoming requests
Network Issues
If you’re experiencing timeouts or connection problems:- Check your network connectivity
- Verify that outbound connections to the ATP API are allowed
- Consider increasing the timeout configuration if you have high latency
Environment-Specific Considerations
Development Environment
- Use
environment="development"
in your configuration - Use test API keys (prefixed with
sk_test_
) - Set lower timeouts for faster debugging
Production Environment
- Use
environment="production"
in your configuration - Use production API keys (prefixed with
sk_live_
) - Configure appropriate timeouts and retry logic
- Implement proper error handling and logging
Verification: Knowledge Check
Before proceeding, let’s verify your understanding of the ATP setup process: If you understand these concepts and have successfully set up your environment, you’re ready to move on to creating and sending actual notifications.Next Steps
Now that you have your ATP client set up and tested, you’re ready to dive deeper into creating effective notifications and handling responses.Creating Notifications
Learn how to design and send effective notifications