πŸ“’Managing Audiences

Programs can set audiences for different tier payouts or allowlists. Each audience can have entries that are:

Type
Description

Static

Entered manually or via API

Dynamic

Users that matched a specific condition automatically

Getting user audiences

Use getUserAudiences to check which audiences a user belongs to:

import { Fuul } from '@fuul/sdk';

await Fuul.getUserAudiences({
  user_identifier: '0x1234...',
  user_identifier_type: 'evm_address',
});

Updating audiences via API

Audience entries can be managed through the Fuul API. Use the Audience Segments endpointsarrow-up-right to create audiences and add or remove users.

circle-info

A service_role API key is required for audience management endpoints.

Last updated