Is AI recommending you? Ask Contentstack Canoe for free
Is AI recommending your brand? Find out with Contentstack Canoe for free
Contentstack.comAcademyLogin
CS-log-dark.svgCS-log-dark.svg
  • Changelog
  • APIs
  • SDKs

Platform

  • Solution Center
  • Marketplace
  • Changelog
  • Developers & IT
  • Business users
  • Digital leaders
  • Developer Fast Track
  • Plans & Pricing

Solutions

  • Retail
  • Travel and tourism
  • Financial services
  • Technology
  • Manufacturing
  • E-commerce
  • Localization
  • Personalization
  • Portals and knowledge bases

Resources

  • Academy
  • Docs
  • Contentstack for Developers
  • Agents Start Here
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • The Forrester Wave™: Digital Experience Platforms, Q4 2025
  • Webinars
  • Glossary
  • Content generative library
  • Community

Customers

  • Case Studies
  • Customer Care
  • Contentstack Experience Awards
  • Customer support

Partners

  • Overview
  • Find a partner
  • Login

Company

  • About us
  • News
  • Customer support portal
  • Contact

Social

  • Facebook
  • LinkedIn
  • Instagram
  • GitHub
  • YouTube
  • Discord
  • X
LegalTermsPrivacyTrust Center

Cookie settings

Copyright © 2026 Contentstack Inc. All rights reserved.
/
  1. Home
  2. APIs
  3. Assets API
  4. Users

Users

markdownView as Markdown

Invite users to a space and manage their roles.

Invite users to a space

POSThttps://am-api.contentstack.com/api/spaces/{space_uid}/users

The Invite users to a space request invites one or more users to the specified space and assigns them roles. You can include an optional message with the invitation.

Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

Body Parameters

messageoptionalstring

An optional message to include in the invitation.

usersrequiredobject[]
users[].emailrequiredstring (email)

The email address of the user to invite.

users[].rolesrequiredstring[]

The uid values of the roles to assign to the user.

Sample Request
1234567891011
{
  "message": "string",
  "users": [
    {
      "email": "[email protected]",
      "roles": [
        "string"
      ]
    }
  ]
}
Sample Response
Status|201 Created
123
{
  "notice": "string"
}

Get space users

GEThttps://am-api.contentstack.com/api/spaces/{space_uid}/users

Update user roles

PUThttps://am-api.contentstack.com/api/spaces/{space_uid}/users/{user_uid}/roles

Remove a user from a space

DELETEhttps://am-api.contentstack.com/api/spaces/{space_uid}/users/{user_uid}

The Get space users request fetches a paginated list of all users who have access to the specified space.

Sample Response
Status|200 OK
123456
{
  "users": [
    {}
  ],
  "count": 0
}

The Update user roles request updates the roles assigned to a specific user within the space.

Sample Request
1234567
{
  "user": {
    "roles": [
      "string"
    ]
  }
}
Sample Response
Status|200 OK
123
{
  "notice": "string"
}

The Remove a user from a space request revokes a specific user's access to the space.

Sample Response
Status|200 OK
123
{
  "notice": "string"
}
Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

Query Parameters

skipoptionalstring

The skip parameter skips a specific number of items in the output. For example, if there are 20 items and you want to skip the first 2 to get only the last 18 in the response body, specify 2 here.

limitoptionalstring

The limit parameter returns a specific number of items (between 0 and 100) in your response based on the value you provide.

include_countoptionalstring

Set to true to include the total number of users in the response. Default is false.

include_rolesoptionalstring

Set to true to include the roles of each user in the response. Default is false.

sortoptionalstring

Enter the field name to sort the users by.

orderoptionalstring

Enter the sort order of the results. Accepted values are asc for ascending and desc for descending.

search_textoptionalstring

Enter the text to search for across the users in the space.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

user_uidrequiredstring

Enter the uid of the user that you want to manage.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

Body Parameters

userrequiredobject
user.rolesrequiredstring[]

The uid values of the roles to assign to the user.

Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

user_uidrequiredstring

Enter the uid of the user that you want to manage.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.