Submit a target
Callantigen.targets.create() with the domain or IP address you want to test:
attested: true confirms that your organization is authorized to test the target. The target becomes available for testing once the Antigen team approves it.
Submit each domain, wildcard domain, or IP address as a separate target so you can track its approval independently.
Parameters
Returns the submitted target with a
pending status.
Check approval
Retrieve a target by its ID to check its current status and any review notes:
If a target is rejected, use the review note to understand what needs to change. Your Antigen expert can help clarify the scope.
List targets
Callantigen.targets.list() to retrieve your organization’s targets:
Parameters
Returns an array of targets. If none match, the array is empty.
Use approved targets in a run
antigen.getApprovedTargets() returns your approved target values as a string array, ready to pass into a task:
Update a target
Useantigen.targets.update() to correct a target’s value:
antigen.targets.create().
Parameters
Returns the updated target.