Live webinar What's new in Sodium: Information Requests, plus Q&A. Thu 19 Nov, 12 noon Information Requests + Q&A, Thu 19 Nov Reserve your place

CreateApiKeyRequest

Request to create a new API key. Leave the scope fields empty for a normal key that fully
impersonates you. Supply a tenant + role to create a scoped key: it only works on that
tenant, and its effective permissions are the role's, capped at whatever you yourself hold
there at the time of each request.

Properties

Name Type Description
name*string

The friendly name for this API key

The friendly name for this API key

tenantCodestring

The tenant to scope this key to (required when scoping to a role)

The tenant to scope this key to (required when scoping to a role)

systemRoleTypeenum

Admin StandardUser Viewer

Admin StandardUser Viewer

roleCodestring

The code of the custom role to scope to. Supply either this or SystemRoleType, not both.

The code of the custom role to scope to. Supply either this or SystemRoleType, not both.

isSendBlockedboolean

Block this key from every endpoint that sends a message (email, SMS, WhatsApp), whatever
its role allows: it can still create and edit drafts. Defaults to false.

Block this key from every endpoint that sends a message (email, SMS, WhatsApp), whatever
its role allows: it can still create and edit drafts. Defaults to false.

JSON Example

{
  "name": "string",
  "tenantCode": "string",
  "systemRoleType": "Admin",
  "roleCode": "string",
  "isSendBlocked": false
}

Used By Operations