Coda API’s on user permissions from external sources

Hi there, was just wondering how i might be able to give access to external users through an api call. We want to be able to give a shareable link but not have them share the link themselves

HI @Jason_Blignaut - You can use the Add permission endpoint to add a new permission to your doc. Link sharing is controlled using the type "anyone". For example, here’s sharing a doc with anyone with the link can view:

CodaAPI.shareDoc(docId, {
  access: "readonly",
  principal: {
    type: "anyone"