Skip to main content

According to the documentation, “https://api.lucid.co/documents/search” endpoint gives the result:

  "documentId": "110808fd-4553-4316-bccf-4f25ff59a532",
  "title": "document title",
  "editUrl": "https://lucid.app/lucidchart/110808fd-4553-4316-bccf-4f25ff59a532/edit",
  "viewUrl": "https://lucid.app/lucidchart/110808fd-4553-4316-bccf-4f25ff59a532/view",
  "version": 101,
  "pageCount": 5,
  "canEdit": false,
  "created": "2019-04-22T13:47:23Z",
  "creatorId": 12345,
  "lastModified": "2020-06-26T16:29:37Z",
  "lastModifiedUserId": 54321,
  "customAttributes": t],
  "customTags":
    "in progress"
  ],
  "product": "lucidchart",
  "status": "Complete",
  "classification": "Private",
  "trashed": null,
  "parent": null,
  "owner": {
    "id": 123456,
    "type": "user",
    "name": "John Doe"
  }

especially tells that there is a response field “owner” which is good.

But unfortunately in the real world the result is :

documentId: 'efde95db-0d4e-4173-a6a4-c49fac4cc046',
    title: 'Sample Diagram 19',
    editUrl: 'https://lucid.app/lucidchart/efde95db-0d4e-4173-a6a4-c49fac4cc046/edit',   
    viewUrl: 'https://lucid.app/lucidchart/efde95db-0d4e-4173-a6a4-c49fac4cc046/view',   
    version: 385,
    pageCount: 3,
    canEdit: true,
    creatorId: 128780733,
    lastModified: '2024-02-16T18:17:39Z',
    lastModifiedUserId: 128780733,
    trashed: null,
    status: 'Draft',
    classification: null,
    customAttributes: f],
    customTags: a],
    parent: null,
    product: 'lucidchart',
    created: '2024-02-16T09:46:39Z'

Any explanation for that inconsistency?

Regards.

 

The document owner information is not returned if the requesting token only has access to the document because its publicly published.

 

I see that this is not stated in the documentation. I will get it updated.


Hi ​@Michael B,

What does that means?

I’m using:

 "authorizationUrl": "https://lucid.app/oauth2/authorize",
 "tokenUrl": "https://api.lucid.co/oauth2/token",
 "scopes": o"lucidchart.document.content:readonly"],

regards.


Reply