Amazon WorkMail Workmail Operations API
The Workmail Operations API from Amazon WorkMail — 9 operation(s) for workmail operations.
The Workmail Operations API from Amazon WorkMail — 9 operation(s) for workmail operations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/amazon-workmail:amazon-workmail-operations-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.1.0
info:
title: Amazon WorkMail Operations API
version: '2017-10-01'
description: Generated from AWS's published Smithy model for Amazon WorkMail. 12 operation(s).
contact:
name: Amazon Web Services
url: https://aws.amazon.com/contact-us/
license:
name: Apache 2.0
identifier: Apache-2.0
url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://workmail.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
paths:
/#AssumeImpersonationRole:
post:
operationId: AssumeImpersonationRole
summary: Assume Impersonation Role
description: Assumes an impersonation role for the given WorkMail organization. This method returns an authentication
token you can use to make impersonated calls.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/AssumeImpersonationRoleResponse'
'400':
description: InvalidParameterException; OrganizationNotFoundException; OrganizationStateException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InvalidParameterException'
'404':
description: ResourceNotFoundException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- WorkMailService.AssumeImpersonationRole
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/AssumeImpersonationRoleRequest'
tags:
- Operations
/#DeregisterFromWorkMail:
post:
operationId: DeregisterFromWorkMail
summary: Deregister From Work Mail
description: Mark a user, group, or resource as no longer used in WorkMail. This action disassociates the mailbox and
schedules it for clean-up. WorkMail keeps mailboxes for 30 days before they are permanently removed. The functionality
in the console is Disable.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DeregisterFromWorkMailResponse'
'400':
description: EntityNotFoundException; EntityStateException; InvalidParameterException; OrganizationNotFoundException;
OrganizationStateException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/EntityNotFoundException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- WorkMailService.DeregisterFromWorkMail
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DeregisterFromWorkMailRequest'
tags:
- Operations
/#RegisterToWorkMail:
post:
operationId: RegisterToWorkMail
summary: Register To Work Mail
description: Registers an existing and disabled user, group, or resource for WorkMail use by associating a mailbox and
calendaring capabilities. It performs no change if the user, group, or resource is enabled and fails if the user,
group, or resource is deleted. This operation results in the accumulation of costs. For more information, see Pricing.
The equivalent console functionality for this operation is Enable. Users can either be created by calling the CreateUser
API operation or they can be synchronized from your directory. For more information, see DeregisterFromWorkMail.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/RegisterToWorkMailResponse'
'400':
description: DirectoryServiceAuthenticationFailedException; DirectoryUnavailableException; EmailAddressInUseException;
EntityAlreadyRegisteredException; EntityNotFoundException; EntityStateException; InvalidParameterException; MailDomainNotFoundException;
MailDomainStateException; OrganizationNotFoundException; OrganizationStateException; UnsupportedOperationException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DirectoryServiceAuthenticationFailedException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- WorkMailService.RegisterToWorkMail
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/RegisterToWorkMailRequest'
tags:
- Operations
/#ListGroupsForEntity:
post:
operationId: ListGroupsForEntity
summary: List Groups For Entity
description: Returns all the groups to which an entity belongs.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ListGroupsForEntityResponse'
'400':
description: EntityNotFoundException; EntityStateException; InvalidParameterException; OrganizationNotFoundException;
OrganizationStateException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/EntityNotFoundException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- WorkMailService.ListGroupsForEntity
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ListGroupsForEntityRequest'
tags:
- Operations
/#UpdateGroup:
post:
operationId: UpdateGroup
summary: Update Group
description: Updates attributes in a group.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/UpdateGroupResponse'
'400':
description: EntityNotFoundException; EntityStateException; InvalidParameterException; OrganizationNotFoundException;
OrganizationStateException; UnsupportedOperationException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/EntityNotFoundException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- WorkMailService.UpdateGroup
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/UpdateGroupRequest'
tags:
- Operations
/#CreateIdentityCenterApplication:
post:
operationId: CreateIdentityCenterApplication
summary: Create Identity Center Application
description: Creates the WorkMail application in IAM Identity Center that can be used later in the WorkMail - IdC integration.
For more information, see PutIdentityProviderConfiguration. This action does not affect the authentication settings
for any WorkMail organizations.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/CreateIdentityCenterApplicationResponse'
'400':
description: InvalidParameterException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InvalidParameterException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- WorkMailService.CreateIdentityCenterApplication
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/CreateIdentityCenterApplicationRequest'
tags:
- Operations
/#DeleteIdentityCenterApplication:
post:
operationId: DeleteIdentityCenterApplication
summary: Delete Identity Center Application
description: Deletes the IAM Identity Center application from WorkMail. This action does not affect the authentication
settings for any WorkMail organizations.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DeleteIdentityCenterApplicationResponse'
'400':
description: InvalidParameterException; OrganizationStateException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InvalidParameterException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- WorkMailService.DeleteIdentityCenterApplication
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DeleteIdentityCenterApplicationRequest'
tags:
- Operations
/#UpdateUser:
post:
operationId: UpdateUser
summary: Update User
description: Updates data for the user. To have the latest information, it must be preceded by a DescribeUser call.
The dataset in the request should be the one expected when performing another DescribeUser call.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/UpdateUserResponse'
'400':
description: DirectoryServiceAuthenticationFailedException; DirectoryUnavailableException; EntityNotFoundException;
EntityStateException; InvalidParameterException; OrganizationNotFoundException; OrganizationStateException; UnsupportedOperationException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DirectoryServiceAuthenticationFailedException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- WorkMailService.UpdateUser
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/UpdateUserRequest'
tags:
- Operations
/#DeletePersonalAccessToken:
post:
operationId: DeletePersonalAccessToken
summary: Delete Personal Access Token
description: Deletes the Personal Access Token from the provided WorkMail Organization.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DeletePersonalAccessTokenResponse'
'400':
description: InvalidParameterException; OrganizationNotFoundException; OrganizationStateException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InvalidParameterException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- WorkMailService.DeletePersonalAccessToken
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DeletePersonalAccessTokenRequest'
tags:
- Operations
/#ListPersonalAccessTokens:
post:
operationId: ListPersonalAccessTokens
summary: List Personal Access Tokens
description: Returns a summary of your Personal Access Tokens.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ListPersonalAccessTokensResponse'
'400':
description: EntityNotFoundException; EntityStateException; InvalidParameterException; OrganizationNotFoundException;
OrganizationStateException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/EntityNotFoundException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- WorkMailService.ListPersonalAccessTokens
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ListPersonalAccessTokensRequest'
tags:
- Operations
/#DescribeEntity:
post:
operationId: DescribeEntity
summary: Describe Entity
description: Returns basic details about an entity in WorkMail.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DescribeEntityResponse'
'400':
description: EntityNotFoundException; InvalidParameterException; OrganizationNotFoundException; OrganizationStateException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/EntityNotFoundException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- WorkMailService.DescribeEntity
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DescribeEntityRequest'
tags:
- Operations
/#GetPersonalAccessTokenMetadata:
post:
operationId: GetPersonalAccessTokenMetadata
summary: Get Personal Access Token Metadata
description: Requests details of a specific Personal Access Token within the WorkMail organization.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/GetPersonalAccessTokenMetadataResponse'
'400':
description: InvalidParameterException; OrganizationNotFoundException; OrganizationStateException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InvalidParameterException'
'404':
description: ResourceNotFoundException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- WorkMailService.GetPersonalAccessTokenMetadata
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/GetPersonalAccessTokenMetadataRequest'
tags:
- Operations
components:
securitySchemes:
sigv4:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: workmail
schemas:
AssumeImpersonationRoleRequest:
type: object
properties:
OrganizationId:
type: string
description: The WorkMail organization under which the impersonation role will be assumed.
ImpersonationRoleId:
type: string
description: The impersonation role ID to assume.
required:
- OrganizationId
- ImpersonationRoleId
AssumeImpersonationRoleResponse:
type: object
properties:
Token:
type: string
description: The authentication token for the impersonation role.
ExpiresIn:
type: integer
description: The authentication token's validity, in seconds.
CreateIdentityCenterApplicationRequest:
type: object
properties:
Name:
type: string
description: The name of the IAM Identity Center application.
InstanceArn:
type: string
description: The Amazon Resource Name (ARN) of the instance.
ClientToken:
type: string
description: The idempotency token associated with the request.
required:
- Name
- InstanceArn
CreateIdentityCenterApplicationResponse:
type: object
properties:
ApplicationArn:
type: string
description: The Amazon Resource Name (ARN) of the application.
DeleteIdentityCenterApplicationRequest:
type: object
properties:
ApplicationArn:
type: string
description: The Amazon Resource Name (ARN) of the application.
required:
- ApplicationArn
DeleteIdentityCenterApplicationResponse:
type: object
properties: {}
DeletePersonalAccessTokenRequest:
type: object
properties:
OrganizationId:
type: string
description: The Organization ID.
PersonalAccessTokenId:
type: string
description: The Personal Access Token ID.
required:
- OrganizationId
- PersonalAccessTokenId
DeletePersonalAccessTokenResponse:
type: object
properties: {}
DeregisterFromWorkMailRequest:
type: object
properties:
OrganizationId:
type: string
description: The identifier for the organization under which the WorkMail entity exists.
EntityId:
type: string
description: 'The identifier for the member to be updated. The identifier can be UserId, ResourceId, or Group Id,
Username, Resourcename, or Groupname, or email. Entity ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789,
or S-1-1-12-1234567890-123456789-123456789-1234 Email address: entity@domain.tld Entity name: entity'
required:
- OrganizationId
- EntityId
DeregisterFromWorkMailResponse:
type: object
properties: {}
DescribeEntityRequest:
type: object
properties:
OrganizationId:
type: string
description: The identifier for the organization under which the entity exists.
Email:
type: string
description: The email under which the entity exists.
required:
- OrganizationId
- Email
DescribeEntityResponse:
type: object
properties:
EntityId:
type: string
description: The entity ID under which the entity exists.
Name:
type: string
description: Username, GroupName, or ResourceName based on entity type.
Type:
type: string
enum:
- GROUP
- USER
- RESOURCE
description: Entity type.
DirectoryServiceAuthenticationFailedException:
type: object
properties:
Message:
type: string
EntityNotFoundException:
type: object
properties:
Message:
type: string
GetPersonalAccessTokenMetadataRequest:
type: object
properties:
OrganizationId:
type: string
description: The Organization ID.
PersonalAccessTokenId:
type: string
description: The Personal Access Token ID.
required:
- OrganizationId
- PersonalAccessTokenId
GetPersonalAccessTokenMetadataResponse:
type: object
properties:
PersonalAccessTokenId:
type: string
description: The Personal Access Token ID.
UserId:
type: string
description: The WorkMail User ID.
Name:
type: string
description: The Personal Access Token name.
DateCreated:
type: string
format: date-time
description: The date when the Personal Access Token ID was created.
DateLastUsed:
type: string
format: date-time
description: The date when the Personal Access Token ID was last used.
ExpiresTime:
type: string
format: date-time
description: The time when the Personal Access Token ID will expire.
Scopes:
type: array
items:
type: string
description: Lists all the Personal Access Token permissions for a mailbox.
GroupIdentifier:
type: object
properties:
GroupId:
type: string
description: Group ID that matched the group.
GroupName:
type: string
description: Group name that matched the group.
InvalidParameterException:
type: object
properties:
Message:
type: string
ListGroupsForEntityFilters:
type: object
properties:
GroupNamePrefix:
type: string
description: Filters only group names that start with the provided name prefix.
ListGroupsForEntityRequest:
type: object
properties:
OrganizationId:
type: string
description: The identifier for the organization under which the entity exists.
EntityId:
type: string
description: 'The identifier for the entity. The entity ID can accept UserId or GroupID, Username or Groupname,
or email. Entity ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234 Email
address: entity@domain.tld Entity name: entity'
Filters:
$ref: '#/components/schemas/ListGroupsForEntityFilters'
NextToken:
type: string
description: The token to use to retrieve the next page of results. The first call does not contain any tokens.
MaxResults:
type: integer
description: The maximum number of results to return in a single call.
required:
- OrganizationId
- EntityId
ListGroupsForEntityResponse:
type: object
properties:
Groups:
type: array
items:
$ref: '#/components/schemas/GroupIdentifier'
description: The overview of groups in an organization.
NextToken:
type: string
description: The token to use to retrieve the next page of results. This value is `null` when there are no more
results to return.
ListPersonalAccessTokensRequest:
type: object
properties:
OrganizationId:
type: string
description: The Organization ID.
UserId:
type: string
description: The WorkMail User ID.
NextToken:
type: string
description: The token from the previous response to query the next page.
MaxResults:
type: integer
description: The maximum amount of items that should be returned in a response.
required:
- OrganizationId
ListPersonalAccessTokensResponse:
type: object
properties:
NextToken:
type: string
description: The token from the previous response to query the next page.
PersonalAccessTokenSummaries:
type: array
items:
$ref: '#/components/schemas/PersonalAccessTokenSummary'
description: Lists all the personal tokens in an organization or user, if user ID is provided.
PersonalAccessTokenSummary:
type: object
properties:
PersonalAccessTokenId:
type: string
description: The ID of the Personal Access Token.
UserId:
type: string
description: The user ID of the WorkMail user associated with the Personal Access Token.
Name:
type: string
description: The name of the Personal Access Token.
DateCreated:
type: string
format: date-time
description: The date when the Personal Access Token was created.
DateLastUsed:
type: string
format: date-time
description: The date when the Personal Access Token was last used.
ExpiresTime:
type: string
format: date-time
description: The date when the Personal Access Token will expire.
Scopes:
type: array
items:
type: string
description: Lists all the Personal Access Token permissions for a mailbox.
RegisterToWorkMailRequest:
type: object
properties:
OrganizationId:
type: string
description: The identifier for the organization under which the user, group, or resource exists.
EntityId:
type: string
description: 'The identifier for the user, group, or resource to be updated. The identifier can accept UserId, ResourceId,
or GroupId, or Username, Resourcename, or Groupname. The following identity formats are available: Entity ID:
12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789, or S-1-1-12-1234567890-123456789-123456789-1234
Entity name: entity'
Email:
type: string
description: The email for the user, group, or resource to be updated.
required:
- OrganizationId
- EntityId
- Email
RegisterToWorkMailResponse:
type: object
properties: {}
ResourceNotFoundException:
type: object
properties:
Message:
type: string
UpdateGroupRequest:
type: object
properties:
OrganizationId:
type: string
description: The identifier for the organization under which the group exists.
GroupId:
type: string
description: 'The identifier for the group to be updated. The identifier can accept GroupId, Groupname, or email.
The following identity formats are available: Group ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234
Email address: group@domain.tld Group name: group'
HiddenFromGlobalAddressList:
type: boolean
description: If enabled, the group is hidden from the global address list.
required:
- OrganizationId
- GroupId
UpdateGroupResponse:
type: object
properties: {}
UpdateUserRequest:
type: object
properties:
OrganizationId:
type: string
description: The identifier for the organization under which the user exists.
UserId:
type: string
description: 'The identifier for the user to be updated. The identifier can be the UserId, Username, or email. The
following identity formats are available: User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234
Email address: user@domain.tld User name: user'
Role:
type: string
enum:
- USER
- RESOURCE
- SYSTEM_USER
- REMOTE_USER
description: Updates the user role. You cannot pass SYSTEM_USER or RESOURCE.
DisplayName:
type: string
description: Updates the display name of the user.
FirstName:
type: string
description: Updates the user's first name.
LastName:
type: string
description: Updates the user's last name.
HiddenFromGlobalAddressList:
type: boolean
description: If enabled, the user is hidden from the global address list.
Initials:
type: string
description: Updates the user's initials.
Telephone:
type: string
description: Updates the user's contact details.
Street:
type: string
description: Updates the user's street address.
JobTitle:
type: string
description: Updates the user's job title.
City:
type: string
description: Updates the user's city.
Company:
type: string
description: Updates the user's company.
ZipCode:
type: string
description: Updates the user's zip code.
Department:
type: string
description: Updates the user's department.
Country:
type: string
description: Updates the user's country.
Office:
type: string
description: Updates the user's office.
IdentityProviderUserId:
type: string
description: User ID from the IAM Identity Center. If this parameter is empty it will be updated automatically when
the user logs in for the first time to the mailbox associated with WorkMail.
required:
- OrganizationId
- UserId
UpdateUserResponse:
type: object
properties: {}
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/workmail/service/2017-10-01/workmail-2017-10-01.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)