Appearance
Step 3: Send It! 📤 ​
Now that your Party Bus application is configured to use P1PS, it's time to start sending emails!
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
Need Help?
If you have any questions or require assistance, please don't hesitate to reach out on our support channel on IL2 Mattermost.