Contentstack introduces the Agentic Experience Platform | Press release
Contentstack introduces the Agentic Experience Platform | Press release
Contentstack.comAcademyLogin
CS-log-dark.svgCS-log-dark.svg
  • Changelog
  • APIs
  • SDKs
  • Solution Center
  • Marketplace
  • Changelog
  • Developers & IT
  • Business users
  • Digital leaders
  • Developer Fast Track
  • Plans & Pricing
  • Retail
  • Travel and tourism
  • Financial services
  • Technology
  • Manufacturing
  • E-commerce
  • Localization
  • Personalization
  • Portals and knowledge bases
  • Academy
  • Docs
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • Webinars
  • Podcasts
  • Glossary
  • Content generative library
  • Community
  • Headless CMS
  • Composable AXP
  • Personalization
  • CDP
  • Case Studies
  • Customer Care
  • Contentstack Experience Awards
  • Customer support
  • Overview
  • Find a partner
  • Login
  • About us
  • News
  • Customer support portal
  • Contact
  • Facebook
  • LinkedIn
  • Instagram
  • GitHub
  • YouTube
  • Discord
  • X

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
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • Webinars
  • Podcasts
  • Glossary
  • Content generative library
  • Community
  • Headless CMS
  • Composable AXP
  • Personalization
  • CDP

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.

AI Assistant

Ask a question below...

infoAI responses may contain mistakes.
/
  1. Home
  2. APIs
  3. Administration API
  4. Users

Users

markdownView as Markdown

All accounts registered with Contentstack are known as Users. A stack can have many users with varying permissions and roles. 

NoteBefore executing any calls, retrieve the authtoken by authenticating yourself via the Log in call of User Session. The authtoken is returned in the 'Response' body of the Log in call and is mandatory in all of the calls. Example: blt3cecf75b33bb2ebe

Get user

GEThttps://api.contentstack.io/user

The Get user call returns comprehensive information of an existing user account. The information returned includes details of the stacks owned by and shared with the specified user account.

Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
{
	"user": {
		"uid": "blt22e22222d22d2f22222a2b2f",
		"created_at": "2016-06-30T05:02:27.516Z",
		"updated_at": "2019-07-16T10:35:30.898Z",
		"email": "[email protected]",
		"username": "john.doe_blt11fed1e1",
		"first_name": "John",
		"last_name": "Doe",
		"company": "Contentstack",
		"org_uid": [
			"blt44444c44ea4ddf222"
		],
		"shared_org_uid": [
			"bltcde1e1cdf1f11e5f",
			"blt22e2222dd2e2fb22",
			"blt3f3ad33ca33cb3a3"
		],
		"mobile_number": "9898989898",
		"country_code": "91",
		"tfa_status": "verified",
		"authy_id": "123123123",
		"active": true,
		"failed_attempts": 0,
		"authtoken": "bltd111c111111c11ec",
		"roles": [{
			"uid": "bltc0aa00ea0000b000",
			"name": "Developer",
			"description": "Developer can perform all Content Manager's actions, view audit logs, create roles, invite users, manage content types, languages, and environments.",
			"users": [
				"blt1d11a1d11c1b11111e111a1f",
				"blt22dd2fd22222222e22f2aa22",
				"sys_blt3a3333e33b30c3ea"
			],
			"created_at": "2016-03-21T10:15:09.434Z",
			"updated_at": "2018-06-20T10:44:19.618Z",
			"api_key": "blt444ad44e4d44aa4a",
			"rules": [{
					"module": "locale",
					"locales": [
						"$all"
					],
					"acl": {
						"read": true
					}
				},
				{
					"module": "environment",
					"environments": [
						"$all"
					],
					"acl": {
						"read": true
					}
				},
				{
					"module": "asset",
					"assets": [
						"$all"
					],
					"acl": {
						"create": true,
						"read": true,
						"update": true,
						"delete": true,
						"publish": true
					}
				}
			]
		}]
	}
}

Update user

PUThttps://api.contentstack.io/user

The Update User API Request updates the details of an existing user account. Only the information entered here will be updated, the existing data will remain unaffected.

When executing the API call, under the 'Body' section, enter the information of the user that you wish to update. This information should be in JSON format.

Additional Resource To update the role of an existing user, refer to the Update Existing User Role API Request.

Sample Request
12345
{
	"user": {
		"company": "company name inc."
	}
}
Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
{
	"notice": "Profile updated successfully.",
	"user": {
		"uid": "abcdef1234567890abcdef",
		"created_at": "2015-03-13T07:37:03.494Z",
		"updated_at": "2015-03-13T07:37:03.494Z",
		"email": "[email protected]",
		"username": "john.doe_blt11fed1e1",
		"first_name": "John",
		"last_name": "Doe",
		"company": "company name inc.",
		"org_uid": [
			"blt44444c44ea4ddf222"
		],
		"shared_org_uid": [
			"bltcde1e1cdf1f11e5f",
			"blt22e2222dd2e2fb22",
			"blt3f3ad33ca33cb3a3"
		],
		"mobile_number": "9898989898",
		"country_code": "91",
		"tfa_status": "verified",
		"authy_id": "123123123",
		"active": true,
		"failed_attempts": 0
	 "settings": {
            "global": [
                {
                    "key": "favorite_stacks",
                    "value": [
                        {
                            "org_uid": "blt40222226ddf287",
                            "stacks": [
                                {
                                    "api_key": "blt922222441b906ce"
                                }
                            ]
                        },
                        {
                            "org_uid": "blt8b22227a9dadcc",
                            "stacks": [
                                {
                                    "api_key": "blt2d2222baca745a8"
                                },
                                {
                                    "api_key": "blt38c22223b67bd04"
                                },
                                {
                                    "api_key": "blt8fb222260d06b9"
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        "last_login_at": "2025-07-08T08:46:26.437Z",
        "password_updated_at": "2024-11-07T08:51:49.609Z",
        "password_reset_required": false
}

Activate a user account

POSThttps://api.contentstack.io/user/activate/{user_activation_token}

The Activate a user account call activates the account of a user after signing up. For account activation, you will require the token received in the activation email.

Sample Request
12345678
{
"user": {
"first_name": "your_first_name",
"last_name": "your_last_name",
"password": "your_password",
"password_confirmation": "confirm_your_password"
}
}
Sample Response
Status|200 OK
123
{
	"notice": "Your account has been activated."
}

Request for a password

POSThttps://api.contentstack.io/user/forgot_password

The Request for a password API helps to get a temporary password to log into an account in case a user has forgotten the login password.

Using this temporary password, you can log in to your account and set a new password for your Contentstack account.

In the 'Body' section, provide the user's email address in JSON format.

Note The “Reset password” token that you receive in your email address is valid only for the next 60 minutes after it’s generated. Post that, it expires and you need to rerun the Reset password API request to generate a new token.

Sample Request
12345
{
	"user": {
		"email": "[email protected]"
	}
}
Sample Response
Status|200 OK
123
{
	"notice": "If this email address exists, we will send you an email with instructions for resetting your password."
}

Reset password

POSThttps://api.contentstack.io/user/reset_password

The Reset password API request allows you to reset your Contentstack account password.

NoteBefore using this API request, you need to execute the Request for a password API request to receive the reset password token in your registered email address.

When executing the request, in the 'Body' section, you need to provide the token that you receive via email, your new password, and password confirmation in JSON format.

NoteThe "Reset password" token is valid only for the next 60 minutes after it’s generated. Post that, it expires and you need to rerun the same request to generate a new token.

Sample Request
1234567
{
	"user": {
		"reset_password_token": "abcdefghijklmnop1234567890",
		"password": "your_new_password",
		"password_confirmation": "your_new_password"
	}
}
Sample Response
Status|200 OK
123
{
	"notice": "Your password has been reset successfully."
}
Hide Parameters

Headers

authtokenrequiredstring

Example:

Enter_your_authtoken
Hide Parameters

Headers

authtokenrequiredstring

Example:

Enter_your_authtoken
Content-Typerequiredstring

Example:

application/json
Hide Parameters

URL Parameters

user_activation_tokenrequiredstring

Enter the activation token received on the registered email address. You can find the activation token in the activation URL sent to the email address used while signing up.

Example:

bltf36705c7361d4734
Hide Parameters

Headers

Content-Typerequiredstring

Example:

application/json
Hide Parameters

Headers

Content-Typerequiredstring

Example:

application/json