Search Storyblok's Documentation
  1. Retrieve Multiple Collaborators

Retrieve Multiple Collaborators

This endpoint returns an array of collaborator objects. The response is paged.

https://mapi.storyblok.com/v1/spaces/:space_id/collaborators/

Path Parameters

  • :space_id

    required number

    Numeric ID of a space

Query Parameters

  • per_page

    number

    Default: 25. Max: 100. Learn more under Pagination.

  • page

    number

    Default: 1. Learn more under Pagination.

Response Properties

  • collaborators

    The Collaborator Object []

    An array of collaborator objects.

    • user

      object

      The user object inside a collaborator object

      • id

        number

        The user ID

      • firstname

        string

        First name of collaborator

      • lastname

        string

        Last name of collaborator

      • alt_email

        string

        Email of collaborator

      • avatar

        string

        Avatar of collaborator usually an image

      • userid

        string

        User ID of collaborator

      • friendly_name

        string

        Friendly name of collaborator

    • role

      string

      Role of the collaborator, could be admin, editor or custom roles

    • user_id

      number

      Numeric ID of the user

    • permissions

      enum[]

      Allow specific actions for collaborator in interface and add the permission as array of strings

      PermissionDescription
      publish_storiesAllow publishing of content entries
      save_storiesAllow editing and saving of content entries
      edit_datasourcesAllow editing and saving of datasources
      access_commerceAllow access to commerce app
      edit_story_slugDeny the change of slugs of content entries
      move_storyDeny moving of content entries
      view_composerDeny access to visual composer
    • allowed_paths

      number[]

      Story ids the user should have access to (acts as whitelist). If no item is selected the user has rights to access all content items.

    • field_permissions

      string[]

      Hide specific fields for this user with an array of strings with the schema

    • id

      number

      Numeric id of collaborator

    • space_role_id

      number

      Numeric ID of the space role

    • space_role_ids

      number[]

      Array of space role ids

    • space_id

      number

      Numeric id of the collaborator space

Request
curl "https://mapi.storyblok.com/v1/spaces/606/collaborators/" \
  -X GET \
  -H "Authorization: YOUR_OAUTH_TOKEN" \
  -H "Content-Type: application/json"
Request
// Using the Universal JavaScript Client:
// https://github.com/storyblok/storyblok-js-client
Storyblok.get('/spaces/606/collaborators/', {})
  .then(response => {
    console.log(response)
  }).catch(error => { 
    console.log(error)
  })
Request
$client = new \Storyblok\ManagementClient('YOUR_OAUTH_TOKEN');

$client->get('/spaces/606/collaborators/')->getBody();
Request
require 'storyblok'
client = Storyblok::Client.new(oauth_token: 'YOUR_OAUTH_TOKEN')

client.false('/spaces/606/collaborators/')
Request
HttpResponse<String> response = Unirest.get("https://mapi.storyblok.com/v1/spaces/606/collaborators/")
  .header("Authorization", "YOUR_OAUTH_TOKEN")
  .asString();
Request
var client = new RestClient("https://mapi.storyblok.com/v1/spaces/606/collaborators/");
var request = new RestRequest(Method.GET);

request.AddHeader("Authorization", "YOUR_OAUTH_TOKEN");
IRestResponse response = client.Execute(request);
Request
import Foundation

let headers = [
  "Content-Type": "application/json",
  "Authorization": "YOUR_OAUTH_TOKEN"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://mapi.storyblok.com/v1/spaces/606/collaborators/")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0)
request.method = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
Request
import requests

url = "https://mapi.storyblok.com/v1/spaces/606/collaborators/"

querystring = {}

payload = ""
headers = {
  'Content-Type': "application/json",
  'Authorization': "YOUR_OAUTH_TOKEN"
}

response = requests.request("GET", url, data=payload, headers=headers, params=querystring)

print(response.text)