Common Issues & Solutions
| Issue | Possible Causes | Recommended Actions |
|---|---|---|
| JWT Token request fails | Incorrect username/password | Verify your credentials |
| Audience creation fails | Missing or invalid required fields | Double-check payload format and required fields |
| Data upload fails | Invalid viantSegmentId or data type | Confirm segment ID and ensure correct data format |
| Audience expiration fails | Mismatched segment IDs | Ensure segmentId matches between URL and payload |
| Opt-out request fails | Invalid hash or IP format | Use correct formats: SHA-256 hashes and IPv4 |
| Job status retrieval errors | Incorrect job_id | Confirm job ID from the opt-out response |
Audience Creation: Common Errors
-
Missing or Invalid Fields
-
If a required field (e.g.,
dataType) is missing, the API returns a 400 error. -
Double-check and fix the payload.
-
-
Unauthorized (401/403)
-
Ensure the
Authorizationheader is set. -
If token is expired, refresh it via
POST /v1/oauth2/token/refresh.
-
-
Response Field Insight
-
If a
viantSegmentIdis returned, the audience was created. -
Status
"INACTIVE"is expected until sufficient data is added.
-
Add Audience Data: Common Errors
-
Invalid or Missing
viantSegmentId-
Must match the one in the URL.
-
Segment must not be archived.
-
-
Hash Format Issues
-
For
email_sha256, ensure values are 64-character hex strings. -
API returns 400 and
bad_recordsif format is incorrect.
-
-
Payload Too Large
-
Limit is 10MB. Split into smaller batches or gzip the payload.
-
Use
Content-Encoding: gzipwhen sending compressed data.
-
Audience Expiry: Common Errors
-
Mismatched IDs
- The
segmentIdin JSON must match the one in the URL.
- The
-
Segment Already Archived
- Archived segments cannot be reactivated via API. Check status before calling.
Cross-Audience Opt-Out: Common Errors
-
Invalid Hash or IP Format
-
SHA-256 or IPv4 values must follow strict format validation.
-
API returns detailed error messages if format fails.
-
-
Empty Payload
- At least one identifier (email, IP, etc.) must be included. Empty arrays will be rejected.
-
Missing Opt-Out Keys
- Request must include at least one of:
email_sha256,ip,mobile_id, orcookie.
- Request must include at least one of: