Transactions
- Overview
- Installation
- Endpoints
- Examples
Indexer
- Overview
- Installation
- Endpoints
- Examples
Indexer Gateway
Analytics
- Overview
- Endpoints
- Examples
Metadata
- Overview
- Endpoints
- Examples
Infrastructure
- Overview
- Endpoints
Builder
Marketplace
- Overview
- Endpoints
- Examples
Node Gateway
Endpoints
GetAudience
POST
/
rpc
/
Builder
/
GetAudience
curl --request POST \
--url https://api.sequence.app/rpc/Builder/GetAudience \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '{
"projectId": 123,
"audienceId": 123
}'
{
"audience": {
"id": 123,
"projectId": 123,
"name": "<string>",
"contactCount": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
},
"contacts": [
{
"id": 123,
"audienceId": 123,
"name": "<string>",
"address": "<string>",
"email": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"contracts": [
{
"id": 123,
"projectId": 123,
"contractName": "<string>",
"contractAddress": "<string>",
"contractType": "<string>",
"chainId": 123,
"source": "LINKED",
"itemsContractAddress": "<string>",
"abi": "<string>",
"bytecode": "<string>",
"bytecodeHash": "<string>",
"audienceId": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
}
Authorizations
Public project access key for authenticating requests obtained on Sequence Builder. Example Test Key: AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI
Response
200
application/json
OK
[]Contract
Represented as uint8 on the server side
Available options:
LINKED
, DEPLOYED
, SALE
Was this page helpful?
curl --request POST \
--url https://api.sequence.app/rpc/Builder/GetAudience \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '{
"projectId": 123,
"audienceId": 123
}'
{
"audience": {
"id": 123,
"projectId": 123,
"name": "<string>",
"contactCount": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
},
"contacts": [
{
"id": 123,
"audienceId": 123,
"name": "<string>",
"address": "<string>",
"email": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"contracts": [
{
"id": 123,
"projectId": 123,
"contractName": "<string>",
"contractAddress": "<string>",
"contractType": "<string>",
"chainId": 123,
"source": "LINKED",
"itemsContractAddress": "<string>",
"abi": "<string>",
"bytecode": "<string>",
"bytecodeHash": "<string>",
"audienceId": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
}