User Session

View as Markdown

User Session

User session consists of calls that will help you to sign in and sign out of your Contentstack account.

login

The login method allows you to sign in to your Contentstack account.

NameTypeDescription
email (required)str

The email ID of the user

password (required)str

The password of the user

tfa_tokenstr

Token generated by user’s authenticator app or received via SMS

import contentstack_management
client = contentstack_management.Client()
client.login(username, password, tfa_token)

logout

The logout method allows you to sign out of your Contentstack account.

import contentstack_management
client = contentstack_management.Client()
client.logout()