Skip to content

Commit 3d9c9d5

Browse files
authored
Merge pull request #6524 from segmentio/maleman842-patch-1
Add Audiences API FAQ
2 parents 350bedf + 9fe655d commit 3d9c9d5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/engage/faqs.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@ redirect_from:
88

99
## Do you have an Audiences API?
1010

11-
You can add, remove, and modify audiences only by using the Engage in-app audience builder.
11+
Yes. You can learn more about the Audience API by visiting the [Segment Public API documentation](https://docs.segmentapis.com/tag/Audiences){:target="_blank"}.
1212

13-
However, you can programmatically query the Profile API to determine if a user belongs to a particular audience because Engage creates a trait with the same name as your audience. For example, to determine if the user with an email address of `[email protected]` is a member of your `high_value_users` audience, you could query the following profile API URL:
13+
## Can I programmatically determine if a user belongs to a particular audience?
14+
15+
Yes. Eecause Engage creates a trait with the same name as your audience, you can query the Profile API to determine if a user belongs to a particular audience. For example, to determine if the user with an email address of `[email protected]` is a member of your `high_value_users` audience, you could query the following Profile API URL:
1416

1517
```
1618
https://profiles.segment.com/v1/namespaces/<namespace_id>/collections/users/profiles/email:[email protected]/traits?include=high_value_users
1719
```
1820

19-
The following response indicates that Bob is indeed a high-value user:
21+
The following response indicates that Bob is a high-value user:
2022

2123
```json
2224
{

0 commit comments

Comments
 (0)