Skip to content
campaiDeveloper
campai.com

Misc · Wiki

GET/{organizationId}/misc/wiki/pages/{pageId}Reads only

Get page

Returns a page with its content, its parent pages and what the caller may do with it. Pictures and files come with signed addresses, and links to pages the caller may not read are left out. Who it is shared with, also through its parents, and its public link are only included for those who may share pages.

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Permission checks in detail
Required permissions
  • wiki.read
Also checked, depending on the request and the records it touches
  • { wiki: { [permission]: true } }
  • user.read
  • apiKey.read
  • contact:member.read
  • contact:address.read
  • contact:customer.read
  • contact:sponsor.read
  • contact:contributor.read
  • contact:employee.read
  • contact:supplier.read
  • contact.read

Request

Path parameters

  • organizationIdidrequired
  • pageIdidrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request GET 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/misc/wiki/pages/YOUR_PAGE_ID' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

  • pageobject
    12 properties
    • _idid
    • parentidnullable
    • ancestorsid[]
    • titlestring

      at most 200 characters

    • emojistringnullable

      at most 32 characters

    • contentobject
      5 properties
      • typestring
        26 values
        doc paragraph text hardBreak heading bulletList orderedList listItem taskList taskItem details detailsSummary detailsContent blockquote callout horizontalRule table tableRow tableHeader tableCell columns column image file page mention
      • attrsobject of one of 4 types
        Keys: 1 pattern

        at most 64 characters

      • contentobject (recursive)[]

        at most 5000 items

      • marksobject[]

        at most 20 items

        2 properties
        • typestring
          bold italic underline strike code link highlight
        • attrsobject of one of 4 types
          Keys: 1 pattern

          at most 64 characters

      • textstring

        at most 100000 characters

    • tagsstring[]

      at most 20 items · each 1–50 characters

    • publicTokenstringnullable

      at most 64 characters

    • createdAtstring · date-timenullable
    • createdByobjectnullable
    • updatedAtstring · date-timenullable
    • updatedByobjectnullable
  • parentsobject[]
    3 properties
    • _idid
    • titlestring

      at most 200 characters

    • emojistringnullable

      at most 32 characters

  • sharesobject[]
    5 properties
    • typestring
      user contact segment contactType team
    • idstring

      1–64 characters

    • namestring

      1–200 characters

    • accessstring
      read edit
    • hasConnectAccessboolean
  • inheritedSharesobject[]
    6 properties
    • typestring
      user contact segment contactType team
    • idstring

      1–64 characters

    • namestring

      1–200 characters

    • accessstring
      read edit
    • hasConnectAccessboolean
    • viaobject
      2 properties
      • _idid
      • titlestring

        at most 200 characters

  • canEditboolean
  • canInsertboolean
  • canRemoveboolean
  • canShareboolean
Response200
{
  "page": {
    "_id": "000000000000000000000001",
    "parent": "000000000000000000000001",
    "ancestors": [
      "000000000000000000000001"
    ],
    "title": "string",
    "emoji": "string",
    "content": {
      "type": "doc"
    },
    "tags": [
      "string"
    ],
    "publicToken": "string"
  },
  "parents": [
    {
      "_id": "000000000000000000000001",
      "title": "string",
      "emoji": "string"
    }
  ],
  "shares": [
    {
      "type": "user",
      "id": "string",
      "name": "string",
      "access": "read",
      "hasConnectAccess": true
    }
  ],
  "inheritedShares": [
    {
      "type": "user",
      "id": "string",
      "name": "string",
      "access": "read",
      "hasConnectAccess": true,
      "via": {
        "_id": "000000000000000000000001",
        "title": "string"
      }
    }
  ],
  "canEdit": true,
  "canInsert": true,
  "canRemove": true,
  "canShare": true
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.