Skip to content

Commit fe10a6e

Browse files
docs: Update API key docs for campaigns
1 parent 52b25c5 commit fe10a6e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

audiences/integrate.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ The descriptions of these properties are the same as the properties in the [Impo
3131

3232
#### Authentication
3333

34-
You need to include the API key in the `Campaign-API-Key` header. If you are unable to send custom headers, you can also include the API key in the request body as `apiKey` or as a query parameter `campaign-api-key`.
34+
You need to include the API key in the `Campaign-API-Key` header. If you are unable to send custom headers, you can also include the API key as a query parameter `campaign-api-key`.
3535

3636
#### Examples
3737

38-
In the following examples, you can replace `CAMPAIGN_API_KEY` with the API key of your campaign. In these examples, we're sending a contact with the name "John Doe" and email [email protected] to FirstQuadrant. They have written a custom message "I want to contact sales." which is stored in the `data.message` property.
38+
In the following examples, you can replace `fqa_pub_example` with the API key of your campaign. In these examples, we're sending a contact with the name "John Doe" and email [email protected] to FirstQuadrant. They have written a custom message "I want to contact sales." which is stored in the `data.message` property.
3939

4040
You can use the following HTML form to send contacts to FirstQuadrant. Since HTML forms do not support nested objects, you can use dot notation to specify nested properties. For example, `contact.name` will be parsed as `contact: { name: "John Doe" }` when the header `Content-Type: application/x-www-form-urlencoded` is set.
4141

4242
```html
4343
<form
44-
action="https://firstquadrant.ai/api/go/audience?campaign-api-key=CAMPAIGN_API_KEY"
44+
action="https://firstquadrant.ai/api/go/audience?campaign-api-key=fqa_pub_example"
4545
method="post"
4646
>
4747
<label>Name <input name="contact.name" /></label>
@@ -56,7 +56,7 @@ You can use the following cURL command to send contacts to FirstQuadrant:
5656
```bash
5757
curl \
5858
-X POST \
59-
-H "Campaign-API-Key: CAMPAIGN_API_KEY" \
59+
-H "Campaign-API-Key: fqa_pub_example" \
6060
-H "Content-type: application/json" \
6161
-d '{
6262
"contact": {
@@ -75,7 +75,7 @@ You can use the following JavaScript code to send contacts to FirstQuadrant:
7575
await fetch("https://firstquadrant.ai/api/go/audience", {
7676
method: "POST",
7777
headers: {
78-
"Campaign-API-Key": "CAMPAIGN_API_KEY",
78+
"Campaign-API-Key": "fqa_pub_example",
7979
"Content-Type": "application/json",
8080
},
8181
body: JSON.stringify({

0 commit comments

Comments
 (0)