Invite one person
invite_personAdds one person to a live targeted campaign and returns their personal link, or emails it from clearvoyance.ai when send is true (sandbox accounts never send). One call per order, ticket or sign-up. Pass an email, or your own externalId when you will deliver the link yourself. One person, one link: the same person twice is refused. Refused with 402 once the campaign has as many invitations as it paid for (cohortSize at launch); launch another for the next group.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"apiKey": "<apiKey>",
"campaignId": "<campaignId>"
},
"name": "invite_person"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| send | No | true: we email the invitation. Default false: the link comes back to you. | |
| No | The person's email address. | ||
| apiKey | Yes | Your Clearvoyance API key (cv_live_… or cv_test_…), from create_account | |
| campaignId | Yes | A campaign id from launch_campaign or list_my_campaigns | |
| externalId | No | Your own id for them (order, ticket, customer) instead of an email. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes |