Activations are encapsulations that represent the configuration for sending an audience output to a destination.
Note: The Activations API is currently not Publicly Available.
Creates Activation.
• This endpoint is in Alpha testing. Please submit any feedback by sending an email to friends@segment.com.
• In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach out to your customer success manager for more information.
• When called, this endpoint may generate the Activation Created
event in the audit trail.
The rate limit for this endpoint is 10 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See Rate Limiting for more information.
OK
Resource not found
Validation failure
Too many requests
{- "versionSchema": "v1",
- "workspaceId": "LF4DPqW",
- "destinationId": "684758860892086596310ac",
- "enabled": true,
- "hasEnabledResync": false,
- "emitEntityContext": "on_profile_change",
- "eventEmitter": {
- "name": "Test Event Emitter",
- "description": "Test event emitter for activation"
}, - "subscription": {
- "name": "Test Subscription",
- "trigger": "audienceEntered"
}
}
{- "data": {
- "activation": {
- "id": "act_987654321",
- "enabled": true
}
}
}
Adds a Destination to an Audience.
• This endpoint is in Alpha testing. Please submit any feedback by sending an email to friends@segment.com.
• In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach out to your customer success manager for more information.
• When called, this endpoint may generate the Destination Added into Audience
event in the audit trail.
OK
Resource not found
Validation failure
Too many requests
{- "versionSchema": "v1",
- "workspaceId": "LF4DPqW",
- "destination": {
- "id": "684758860892086596310ac",
- "type": "destination"
}
}
{- "data": {
- "connection": {
- "id": "ii_123456789"
}
}
}
Gets a single Activation by id.
The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See Rate Limiting for more information.
OK
Resource not found
Validation failure
Too many requests
import { configureApis, unwrap } from '@segment/public-api-sdk-typescript' const api = configureApis('/* Insert your Public API token here */') try { const result = await unwrap( api.activations.getActivationFromAudience('spa_9aQ1Lj62S4bomZKLF4DPqW', 'aud_0ujsszwN8NRY24YaXiTIE2VWDTS', 'act_987654321', 'LF4DPqW') ) console.log(JSON.stringify(result)) } catch (e) { console.log('ERROR:', e) }
{- "data": {
- "activation": {
- "id": "act_987654321",
- "enabled": true
}
}
}
Deletes an Activation.
The rate limit for this endpoint is 10 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See Rate Limiting for more information.
OK
Resource not found
Validation failure
Too many requests
import { configureApis, unwrap } from '@segment/public-api-sdk-typescript' const api = configureApis('/* Insert your Public API token here */') try { const result = await unwrap( api.activations.removeActivationFromAudience( 'spa_9aQ1Lj62S4bomZKLF4DPqW', 'aud_0ujsszwN8NRY24YaXiTIE2VWDTS', 'act_987654321', 'LF4DPqW' ) ) console.log(JSON.stringify(result)) } catch (e) { console.log('ERROR:', e) }
{- "data": {
- "status": "SUCCESS"
}
}
Updates an Activation.
The rate limit for this endpoint is 10 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See Rate Limiting for more information.
OK
Resource not found
Validation failure
Too many requests
{- "workspaceId": "LF4DPqW",
- "enabled": false,
- "eventEmitter": {
- "name": "Updated Event Emitter",
- "description": "Updated event emitter for activation"
}, - "subscription": {
- "name": "Updated Subscription",
- "trigger": "audienceExited"
}
}
{- "data": {
- "activation": {
- "id": "act_987654321",
- "enabled": false
}
}
}
Lists all Activations.
The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See Rate Limiting for more information.
OK
Resource not found
Validation failure
Too many requests
import { configureApis, unwrap } from '@segment/public-api-sdk-typescript' const api = configureApis('/* Insert your Public API token here */') try { const result = await unwrap( api.activations.listActivationsFromAudience('spa_9aQ1Lj62S4bomZKLF4DPqW', 'aud_0ujsszwN8NRY24YaXiTIE2VWDTS', 'LF4DPqW') ) console.log(JSON.stringify(result)) } catch (e) { console.log('ERROR:', e) }
{- "data": {
- "activations": [
- {
- "id": "act_987654321",
- "enabled": true
}, - {
- "id": "act_another123",
- "enabled": false
}
]
}
}