How do I set up the IEX Portal REST API?
With the IEX Portal REST API, you can integrate any product that supports a webhook.
Generating an API KEY:
Setting up the REST API is very easy!
First, you have to get your API credentials.
-
Go to your IEX Portal.
-
In the API Key section, you can copy the existing API Key or generate a new key.
REST API setup details:
-
URL: https://us-central1-bluebird-prod-fc31a.cloudfunctions.net/CreateEngagementWebhook
-
Call and response are in JSON
-
Authentication: use the headers "x-api-key" and "x-user-email". The API key is the one we just got and use the email associated to that key.
-
Each user has a different key.
-
-
URL Parameters (all required):
-
"sender_email" (string)
-
It can be yours, or you can send it on someone else's behalf if you're an Organization Admin user
-
-
"receiver_email" (string)
-
"receiver_first_name" (string)
-
"receiver_last_name" (string)
-
"campaign_ids" (string[])
-
An array of campaign IDs
-
-
Even if it's just one, pass in an array of one. You can see a campaign ID by:
- Going to the IEX Portal.
- Click on "Assets Manager".
- Click on "Campaigns".
- Click on a campaign and then on the Edit campaign button.
- The ID will be in the URL.
If the call is successful, we will return a 201 with the following JSON values:
-
"order_id"
-
"delayed_shipping_url":
-
If it's a physical campaign, we will return the URL so the user to input their address and pick a gift (if needed).
-
-
"digital_gift_urls":
-
If it's a digital gift, then it will be the redemption link.
-
If you have any further questions, please feel free to contact us at support@imprintengine.com