Create API Token
Create a new API token.
The creation response will include a token field with the newly created token. This token is only returned on creation, and cannot be
re-generated afterwards.
When an API token is created, an API Token User is automatically created and assigned to the API token. This non-human user account
represents the API token, and any action that the API takes will be attributed to that account. The API Token User can be identified through
the userId property in the API Token entity.
Permissions
api.api-tokens.write
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The token record's name. This will also be used as the API Token User's name.
1The day on which the API token expires.
The set of permissions that inform which endpoints this token is authorized to access.
1api.organizations.read, api.organizations.write, api.organizations.delete, api.engagements.read, api.engagements.write, api.engagements.delete, api.analyses.read, api.analyses.write, api.analyses.delete, api.analyses.run, api.analysis-sources.read, api.analysis-sources.write, api.analysis-sources.delete, api.file-manager.read, api.file-manager.write, api.file-manager.delete, api.reporting-period-config.read, api.reporting-period-config.write, api.reporting-period-config.delete, api.libraries.read, api.libraries.write, api.libraries.delete, api.account-groupings.read, api.account-groupings.write, api.account-groupings.delete, api.engagement-account-groupings.read, api.engagement-account-groupings.write, api.engagement-account-groupings.delete, api.users.read, api.users.write, api.users.delete, api.data-tables.read, api.api-tokens.read, api.api-tokens.write, api.api-tokens.delete, api.tasks.read, api.tasks.write, api.tasks.delete, api.admin-reports.run, api.analysis-types.read, api.analysis-source-types.read, api.analysis-type-configuration.read, api.analysis-type-configuration.write, api.analysis-type-configuration.delete, api.risk-ranges.read, api.risk-ranges.write, api.risk-ranges.delete, api.filters.read, api.filters.write, api.filters.delete, api.file-infos.read, api.webhooks.read, api.webhooks.write, api.webhooks.delete, api.connections.read, api.connections.write, api.connections.delete, api.connection-data-sources.read, api.connection-data-sources.write, api.connection-data-sources.delete, scim.user.read, scim.user.write, scim.user.delete, scim.user.schema Indicates the set of addresses that are allowed to use this token. If empty, any address may use it.
Response
Created
The unique object identifier.
Indicates the data integrity version to ensure data consistency.
The date that the object was originally created.
The date that the object was last updated or modified.
Details about the user who created the object.
Details about the user who last modified or updated the object.
Identifies the API Token User associated with this token.
The token record's name. This will also be used as the API Token User's name.
A partial representation of the API token.
The day on which the API token expires.
Indicates the set of addresses that are allowed to use this token. If empty, any address may use it.
The set of permissions that inform which endpoints this token is authorized to access.
api.organizations.read, api.organizations.write, api.organizations.delete, api.engagements.read, api.engagements.write, api.engagements.delete, api.analyses.read, api.analyses.write, api.analyses.delete, api.analyses.run, api.analysis-sources.read, api.analysis-sources.write, api.analysis-sources.delete, api.file-manager.read, api.file-manager.write, api.file-manager.delete, api.reporting-period-config.read, api.reporting-period-config.write, api.reporting-period-config.delete, api.libraries.read, api.libraries.write, api.libraries.delete, api.account-groupings.read, api.account-groupings.write, api.account-groupings.delete, api.engagement-account-groupings.read, api.engagement-account-groupings.write, api.engagement-account-groupings.delete, api.users.read, api.users.write, api.users.delete, api.data-tables.read, api.api-tokens.read, api.api-tokens.write, api.api-tokens.delete, api.tasks.read, api.tasks.write, api.tasks.delete, api.admin-reports.run, api.analysis-types.read, api.analysis-source-types.read, api.analysis-type-configuration.read, api.analysis-type-configuration.write, api.analysis-type-configuration.delete, api.risk-ranges.read, api.risk-ranges.write, api.risk-ranges.delete, api.filters.read, api.filters.write, api.filters.delete, api.file-infos.read, api.webhooks.read, api.webhooks.write, api.webhooks.delete, api.connections.read, api.connections.write, api.connections.delete, api.connection-data-sources.read, api.connection-data-sources.write, api.connection-data-sources.delete, scim.user.read, scim.user.write, scim.user.delete, scim.user.schema The API token.
Note: The security of the API token is paramount. If compromised, contact your App Admin immediately.

