personal access token config
Promise for a Token
Creates a space
Object representation of the Space to be created
Organization ID, if the associated token can manage more than one organization.
Promise for the newly created Space
Gets the authenticated user
Promise for a User
Gets an organization
Organization ID
Promise for a Organization
Get organization usage grouped by metric
Id of an organization
Query parameters
Promise of a collection of usages
Gets a collection of Organizations
Promise for a collection of Organizations
Gets a personal access token
personal access token config
Promise for a Token
Gets all personal access tokens
Promise for a Token
Gets a space
Space ID
Promise for a Space
Get organization usage grouped by space and metric
Id of an organization
Query parameters
Promise of a collection of usages
Gets all spaces
Promise for a collection of Spaces
Make a custom request to the Contentful management API's /spaces endpoint
Promise for the response data
Creates a personal access token
const contentful = require('contentful-management') const client = contentful.createClient({ accessToken: '<content_management_api_key>' }) client.createPersonalAccessToken( { "name": "My Token", "scope": [ "content_management_manage" ] } ) .then(personalAccessToken => console.log(personalAccessToken.token)) .catch(console.error)