Organization roles

Roles group one or more organization policies, and can be assigned to organization users and access keys.

List roles

get

List the IAM roles that are defined for this organization.

Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
organizationIdstringRequired

The organization ID

Query parameters
limitinteger · min: 1 · max: 100Optional

Limits the number of results to return

Default: 10
pageTokenstringOptional

Pagination token that keeps of track of the current position in the list

reversebooleanOptional

Order in which to retrieve the results

Default: false
Responses
chevron-right
200

OK

application/json
get
/organizations/{organizationId}/iam-roles

Create role

post

Create a new IAM role for this organization.

Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
organizationIdstringRequired

The organization ID

Body
namestringRequired

Role name.

descriptionstringOptional

Role description.

Responses
post
/organizations/{organizationId}/iam-roles

Get role

get

Retrieve a single IAM role.

Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
organizationIdstringRequired

The organization ID

roleIdstringRequired

ID for an IAM role

Responses
chevron-right
200

OK

application/json
idstring · uuidRequired

ID of the role.

organizationIdstring · uuidOptional

ID of the organization to which this role belongs.

namestringRequired

Role name.

descriptionstringOptional

Role description.

typestring · enumRequired

Whether this role is managed by MessageBird or by the organization.

Possible values:
usersDependencyCountintegerRequired

The number of users this role is assigned to.

accessKeysDependencyCountintegerRequired

The number of access keys this role is assigned to.

createdAtstring · date-timeRequired

When this role was created.

updatedAtstring · date-timeRequired

When this role was last updated.

get
/organizations/{organizationId}/iam-roles/{roleId}

Delete role

delete

Remove an IAM role from the organization.

Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
organizationIdstringRequired

The organization ID

roleIdstringRequired

ID for an IAM role

Responses
delete
/organizations/{organizationId}/iam-roles/{roleId}

No content

Update role

patch

Update an IAM role's properties.

Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
organizationIdstringRequired

The organization ID

roleIdstringRequired

ID for an IAM role

Body
namestringOptional

Role name.

descriptionstringOptional

Role description.

Responses
chevron-right
200

OK

application/json
idstring · uuidRequired

ID of the role.

organizationIdstring · uuidOptional

ID of the organization to which this role belongs.

namestringRequired

Role name.

descriptionstringOptional

Role description.

typestring · enumRequired

Whether this role is managed by MessageBird or by the organization.

Possible values:
usersDependencyCountintegerRequired

The number of users this role is assigned to.

accessKeysDependencyCountintegerRequired

The number of access keys this role is assigned to.

createdAtstring · date-timeRequired

When this role was created.

updatedAtstring · date-timeRequired

When this role was last updated.

patch
/organizations/{organizationId}/iam-roles/{roleId}

Last updated

Was this helpful?