contenstack-64

Contentstack

Common Questions

Contentstack is a headless content management system that lets you design and simplify the process of publication by separating code from content.

contenstack-64

Triggers

  • Entry Published

    Triggers when a new entry is published

  • Entry Unpublished

    Triggers when an existing entry is unpublished

  • Entry Created

    Triggers when a new entry is created

  • Entry Updated

    Triggers when an existing entry is updated

  • Entry Deleted

    Triggers when an existing entry is deleted

contenstack-64

Actions

  • Create Entry

    Create a new entry in the specified content type

  • Delete Entry

    Delete the specified entry

  • Get Entries

    Retrieve the list of all entries of the specified content type

  • Get Entry

    Retrieve the details of the specified entry

  • Publish/Unpublish Entry

    Publish or unpublish the specified entry from a specific environment

  • Update Entry

    Update an existing entry 

Common Questions

To use Contentstack in your workflow, you will first need to connect it with Built.io Flow. 

To do this, drag any Contentstack action listed under Contentstack service on the canvas. In case of configuring Contentstack triggers, double-click on the Start icon on your canvas and select the Contentstack service. Then click on the Add New option listed under Connect to Contentstack field in the configuration window. You will be redirected to a connection window where you can use the Login or Auth Token option under the Select Credential Type field to create a new connection for your Contentstack account.

connection-window.jpg

If you select the Login option, you would need to enter the following details: 

Email Address: Enter the email ID of your Contentstack account. 

Password: Enter the password for the specified email ID. 

login-method.jpg

If you select the Auth Token option, you would need to enter the following details:

Auth Token: Enter the auth token for your Contentstack account. 

To retrieve the auth token of your account, you need to hit a POST call for a session URL of your account. Follow these steps to do so:

Step 1: Copy the link https://api.contentstack.io/v3/user-session, paste it in the POSTMAN app, and select the method as POST.

Step 2: Under the Body tab, click the raw radio button and select the JSON (application/javascript) option from the drop-down menu.

Step 3: Paste the following code in the POSTMAN editor space:

{

"user" : {

"email" : "Your_contentstack_account_email_ID ",

"password" : "Your_contentstack_account_passowrd "

}

}

Step 4: Enter the email ID and password of your Contentstack account in the code and click the Send button.

2.jpg

Step 5: On clicking the Send button, you’ll get a response for the POST call. Scroll down through the app and search for the auth token in the output. 

3_censored (1).jpg

Step 6: Paste this auth token in the Auth Token field of your Add Connection window.

4_censored (1).jpg

Once you have entered the token, click on the ADD button. Your entered credential will be automatically verified and on successful verification, a new connection will be added under the Connect to Contentstack field. Once added, this connection will be available in all Contentstack actions and triggers.


1. After logging in to your Built.io Contentstack account, select the Stack to see the list of content types created under it. 

content-types.jpg


2. Hover on the name of the content type of which Field Unique ID you want to retrieve. Click on the vertical ellipsis icon given against the name on the right-hand side. 

select-content-type.jpg

3. Select the Edit Content Type option from the list of options that appear. This will redirect you to a new window where you can edit the settings for the specified content type. 

edit.jpg

4. Click on the Name of the field of which unique ID you wish to retrieve. A new window will appear where you can find the unique ID along with other properties for the selected field. 

unique-id.jpg

You can optionally edit the Unique ID as per your requirements.