curl --request POST \
--url https://stagingstores.xoxoday.com/chef/v1/oauth/api/sendLinks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "xoxo_link.mutation.generateLinkEmail",
"tag": "xoxo_link",
"variables": {
"data": {
"campaignId": 123,
"email_ids": "email1@domain.com,email2@domain.com",
"link_expiry": "19-03-2023"
}
}
}
'{
"data": {
"generateLink": {
"success": 1,
"message": "Links created successfully"
}
}
}Generate a unique reward link per recipient and deliver it to their inbox. Ideal for automating reward distribution with email notifications.
curl --request POST \
--url https://stagingstores.xoxoday.com/chef/v1/oauth/api/sendLinks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "xoxo_link.mutation.generateLinkEmail",
"tag": "xoxo_link",
"variables": {
"data": {
"campaignId": 123,
"email_ids": "email1@domain.com,email2@domain.com",
"link_expiry": "19-03-2023"
}
}
}
'{
"data": {
"generateLink": {
"success": 1,
"message": "Links created successfully"
}
}
}Documentation Index
Fetch the complete documentation index at: https://help-plum.xoxoday.com/llms.txt
Use this file to discover all available pages before exploring further.
| Property | Type | Description |
|---|---|---|
campaignId | String | Unique identifier of the campaign for which links are to be generated. |
email_ids | String | Comma-separated list of recipient email addresses (or a single email). |
link_expiry | String | Expiry date for the link(s) (format: DD-MM-YYYY). |
| Property | Type | Description |
|---|---|---|
| data | object | Root response object. |
| data.generateLink | object | Container for link-sending operation. |
| data.generateLink.success | number | API execution status (1 = success). |
| data.generateLink.message | string | Message returned by the API (e.g., “Links created successfully”). |
Authorization: Bearer <access_token>
Always use xoxo_link.mutation.generateLinkEmail.
xoxo_link.mutation.generateLinkEmail Always use xoxo_link.
xoxo_link Show child attributes
Links sent successfully to all recipients.
Show child attributes