Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

contentstack Attributes API

Attributes represent individual user data characteristics such as age, location, or browsing history used to define audience segments.

contentstack Attributes API is one of 45 APIs that contentstack publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Attributes. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 4 operations across 2 paths, and defines 4 schemas. It is described by OpenAPI 3.1.0, at version v2.

Requests are made against 3 base URLs: https://api.contentstack.io, https://eu-api.contentstack.com, https://au-api.contentstack.com.

4 operations 2 paths 4 schemas 1 DELETE1 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
v2
Base URL
https://cdn.contentstack.io
Authentication
HTTP Bearer, API Key
Terms of Service
Resource Areas
1

Authentication & Security 2

contentstack Attributes API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). An API key is passed in the header as authtoken (authtokenAuth). By default, every request must be authenticated.

  • bearerAuth — OAuth 2.0 Bearer token (M2M) with analytics access.
  • authtokenAuth — Contentstack user authtoken. Only organization Owners and Admins can access analytics.

Paths & Operations 4

Across 2 paths, the API surfaces 4 operations — 1 DELETE, 1 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Attributes 4

Attributes represent individual user data characteristics such as age, location, or browsing history used to define audience segments.

GET
/attributes
Get all attributes
getAllAttributes 1 param → 200401
POST
/attributes
Create an attribute
createAttribute 1 param body → 201400401
PUT
/attributes/{id}
Update an attribute
updateAttribute 2 params body → 200400401404
DELETE
/attributes/{id}
Delete an attribute
deleteAttribute 2 params → 200401404

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are Attribute (5 properties), CreateAttributeRequest (3 properties), Error (2 properties), AttributeList (1 property). Each schema is shown below with its type and property counts.

Attribute
object
A user attribute definition used in audience segment rules.
5 properties
CreateAttributeRequest
object
Parameters for creating or updating an attribute.
3 properties 3 required
AttributeList
object
A list of user attribute definitions.
1 property
Error
object
Standard error response.
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

contentstack-attributes-api-openapi.yml Raw ↑

Other APIs contentstack publishes across the network.

Contentstack GraphQL Content Delivery API
Contentstack Image Delivery API
Contentstack Analytics API
Contentstack Knowledge Vault API
Contentstack Generative AI API
contentstack Accounts API
contentstack Assets API
contentstack Audiences API
contentstack Audit Logs API
contentstack Automations API
contentstack Brand Kits API
contentstack Cache Analytics API