Appearance
Step 3: Send It! 📤 ​
Now that your Party Bus application is configured to use P1PS, it's time to start sending emails!
For sending one-off emails and testing, you can utilize the P1PS User Interface.
For use within your Party Bus mission application, please reference our API docs for details on all the possible API endpoints:
API DocsProgrammatically Sending Emails ​
The most common endpoint you use will be to send emails, which is accomplished with a request like POST /teams/{team_id}/emails
.
Since you have successfully injected environment variables into your running containers (go back to Step 2: Configuration if not), you can use the predefined environment variables to make API calls to P1PS.
Example Request ​
Here's a simple example with curl
, using the predefined environment variables P1PS_AUTH_TOKEN
, P1PS_BASE_URL
, and P1PS_TEAM_ID
:
sh
curl --request POST \
--header "EMAIL_AUTH: $P1PS_AUTH_TOKEN" \
--data "<your payload here>" \
$P1PS_BASE_URL/teams/$P1PS_TEAM_ID/emails
Code Examples ​
Check out some of our code examples for calling the P1PS API in different programming languages.
Need Help?
If you have any questions or require assistance, please don't hesitate to reach out on our support channel on IL2 Mattermost.