Skip to content
Navigation

List space types

Lists all of the organization's space types — reads are open to every authenticated member. Each entry includes viewerCanContribute, which is true when the caller is an administrator or explicitly holds spacetype:contribute on that type.

GET
https://api.cloudraker.com/space-types
Try it
Live API request

Authorization

  • bearerAuth
    HTTP
    required

Returns

200

The organization's space types and the caller's creation capability.

JSON
  • spaceTypes
    array of
    object
    required
    • identifier
      string
      required

      The stable lowercase key.

    • title
      string
      required
    • createdAt
      string
      required
      format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
    • updatedAt
      string
      required
      format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
    • viewerCanContribute
      boolean
      required

      Whether the caller may create a space under this type. True for administrators or an explicit spacetype:contribute grant.

    • createdBy
      optional
      string

      User id of the creator.

    • ontology
      optional
      object

      Per-space-type extraction configuration, applied to future ingests.

      • prompt
        optional
        string

        Freeform guidance appended to the extraction instructions.

        maxLength: 4000
      • entities
        optional
        array of
        object

        Allowed entity types. When non-empty this list REPLACES the built-in types; extracted entities are validated against these keys.

        • key
          string
          required
          pattern: ^[a-z][a-z0-9_-]{0,63}$
        • description
          optional
          string
          maxLength: 500
      • includeDateTime
        optional
        boolean

        Include the current date and time during extraction.

Type to search…

↑↓ navigate↵ selectEsc close