Contents

Diagrams

Returns a list of your diagrams

Method

GET

URL

https://cacoo.com/api/v1/diagrams.format
Example : https://cacoo.com/api/v1/diagrams.json

Format

json, xml

Authentication

required

Parameters

Parameter NameTypeContentDefaultExample
organizationKey (Required)StringOrganization Key from the Organizations APIabcdefghij
offsetIntegerOffset0
limitIntegerLimit50
typeStringType of diagrams
  • all - All diagrams
  • own - Owned by user
  • shared - Shared with user
  • stencil - Stencil
  • template - Template
  • recyclebin - Recycle Bin

allown
sortOnStringOrder by
  • updated - Updated date
  • title - Title
  • owner - Owner
  • folder - Folder

updatedtitle
sortTypeStringOrder type
  • desc - Descending order
  • asc - Ascending order

descasc
folderIdIntegerFolder ID10003
keywordStringSearch keywordSitemap

*If you are using a legacy plan (i.e. the old Free Plan or Plus Plan), you do not need to add organizationKey to the parameters.

Response

FieldTypeDescriptionExample
resultArrayArray of information about the diagrams-
 + urlStringPublic URL for Diagramhttps://cacoo.com/diagrams/00e77f4dc9973517
 + imageUrlStringURL of the first imagehttps://cacoo.com/diagrams/00e77f4dc9973517.png
 + imageUrlForApiStringString to interact with the image using the APIhttps://cacoo.com/api/v1/diagrams/00e77f4dc9973517.png
 + diagramIdStringDiagram ID00e77f4dc9973517
 + titleStringTitle of DiagramWireframe
 + descriptionStringDiagram descriptionCurrent project wireframe
 + securityStringSecurity status of the diagram
  • private - only viewable with shared users
  • url - visible to anyone who knows the URL.
  • public - anyone who knows the URL will be able to edit this diagram.

url
 + typeStringType of the diagram
  • normal - Ordinary diagram
  • stencil - Stencil
  • template - Template

normal
 + ownerName(Deprecated)StringOwner’s user name1MUJPfNEEeVUox15
 + ownerNickname(Deprecated)StringOwner’s nick nameYoko
 + ownerObjectOwner’s-
  + nameStringUser name1MUJPfNEEeVUox15
  + nicknameStringNick nameYoko
  + typeStringAccount Type
  • cacoo - Manage authentication on Cacoo.
  • other - Manage authentication on other than Cacoo.

cacoo
  + imageUrlStringUser Icon URL(32x32 pixels)https://cacoo.com/account/1MUJPfNEEeVUox15/image/32x32
 + editingBooleanIs the diagram currently being edited?true
 + ownBooleanIs this a diagram you created?true
 + sharedBooleanIs this a diagram that has been shared with you?false
 + folderIdIntegerID of the folder the diagram is in10001
 + folderNameStringName of the folder the diagram is inDesign
 + sheetCountIntegerNumber of sheets in the diagram3
 + createdDateDate Created(RFC2822)Mon, 10 Aug 2009 17:00:00 +0900
 + updatedDateDate last updated(RFC2822)Mon, 10 Aug 2009 17:00:00 +0900
countIntegerNumber of results85

JSON Response Example

{
    "result": [
        {
            "url": "https://cacoo.com/diagrams/00e77f4dc9973517",
            "imageUrl": "https://cacoo.com/diagrams/00e77f4dc9973517.png",
            "imageUrlForApi": "https://cacoo.com/api/v1/diagrams/00e77f4dc9973517.png",
            "diagramId": "00e77f4dc9973517",
            "title": "Wireframe",
            "description": "Current project wireframe",
            "security": "url",
            "type": "normal",
            "ownerName": "1MUJPfNEEeVUox15",
            "ownerNickname": "Yoko",
            "owner": {
                "name": "1MUJPfNEEeVUox15",
                "nickname": "Yoko",
                "type": "cacoo",
                "imageUrl": "https://cacoo.com/account/1MUJPfNEEeVUox15/image/32x32"
            },
            "editing": true,
            "own": true,
            "shared": false,
            "folderId": 10001,
            "folderName": "Design",
            "sheetCount": 3,
            "created": "Mon, 10 Aug 2009 17:00:00 +0900",
            "updated": "Mon, 10 Aug 2009 17:00:00 +0900"
        },
        {
            // ...
        }
    ],
    "count": 85
}

XML Response Example

<?xml version="1.0" encoding="utf-8"?>
<diagrams>
  <result>
    <diagram>
      <url>https://cacoo.com/diagrams/00e77f4dc9973517</url>
      <imageUrl>https://cacoo.com/diagrams/00e77f4dc9973517.png</imageUrl>
      <imageUrlForApi>https://cacoo.com/api/v1/diagrams/00e77f4dc9973517.png</imageUrlForApi>
      <diagramId>00e77f4dc9973517</diagramId>
      <title>Wireframe</title>
      <description>Current project wireframe</description>
      <security>url</security>
      <type>normal</type>
      <ownerName>1MUJPfNEEeVUox15</ownerName>
      <ownerNickname>Yoko</ownerNickname>
      <owner>
        <name>1MUJPfNEEeVUox15</name>
        <nickname>Yoko</nickname>
        <type>cacoo</type>
        <imageUrl>https://cacoo.com/account/1MUJPfNEEeVUox15/image/32x32</imageUrl>
      </owner>
      <editing>true</editing>
      <own>true</own>
      <shared>false</shared>
      <folderId>10001</folderId>
      <folderName>Design</folderName>
      <sheetCount>3</sheetCount>
      <created>Mon, 10 Aug 2009 17:00:00 +0900</created>
      <updated>Mon, 10 Aug 2009 17:00:00 +0900</updated>
    </diagram>
    <diagram>
         ...
    </diagram>
  </result>
  <count>85</count>
</diagrams>