Getting project id from share id

What would be the easiest way to get the project_id, if i only have the share_id? I’m looking to make an automation so my users can navigate to the share builder page from a client facing share link.

I realize you can just navigate directly on the page if you’re logged in, so this isn’t super necessary, but my users are used to running a macro for this action on our previous solution so it’s a nice to have.

Hi @hc-evan!

The easiest way to get the project_id associaated with a share_id is going to be setting up a webhook to listen for the share.created event. Here’s an example of the payload:

{
  "account": {
    "id": "11111111-2222-3333-4444-555555555555"
  },
  "project": {
    "id": "11111111-2222-3333-4444-555555555555"
  },
  "resource": {
    "id": "11111111-2222-3333-4444-555555555555",
    "type": "share"
  },
  "type": "share.created",
  "user": {
    "id": "11111111-2222-3333-4444-555555555555"
  },
  "workspace": {
    "id": "11111111-2222-3333-4444-555555555555"
  }
}

Here is the webhooks guide from our docs: Webhooks | Frame.io API Documentation

Hope this helps!

1 Like