{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/business:figma/get-file":{"get":{"operationId":"business_figma_get_file","summary":"Get file JSON","description":"GET /v1/files/{file_key}","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File to export JSON from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…","schema":{"type":"string","description":"File to export JSON from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…"}},{"name":"version","in":"query","required":false,"description":"A specific version ID to get. Omitting this will get the current version of the file.","schema":{"type":"string","description":"A specific version ID to get. Omitting this will get the current version of the file."}},{"name":"ids","in":"query","required":false,"description":"Comma separated list of nodes that you care about in the document. If specified, only a subset of the document will be returned…","schema":{"type":"string","description":"Comma separated list of nodes that you care about in the document. If specified, only a subset of the document will be returned…"}},{"name":"depth","in":"query","required":false,"description":"Positive integer representing how deep into the document tree to traverse. For example, setting this to 1 returns only Pages, setting it…","schema":{"type":"number","description":"Positive integer representing how deep into the document tree to traverse. For example, setting this to 1 returns only Pages, setting it…"}},{"name":"geometry","in":"query","required":false,"description":"Set to \"paths\" to export vector data.","schema":{"type":"string","description":"Set to \"paths\" to export vector data."}},{"name":"plugin_data","in":"query","required":false,"description":"A comma separated list of plugin IDs and/or the string \"shared\". Any data present in the document written by those plugins will be…","schema":{"type":"string","description":"A comma separated list of plugin IDs and/or the string \"shared\". Any data present in the document written by those plugins will be…"}},{"name":"branch_data","in":"query","required":false,"description":"Returns branch metadata for the requested file. If the file is a branch, the main file's key will be included in the returned response. If…","schema":{"type":"boolean","default":false,"description":"Returns branch metadata for the requested file. If the file is a branch, the main file's key will be included in the returned response. If…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-file-nodes":{"get":{"operationId":"business_figma_get_file_nodes","summary":"Get file JSON for specific nodes","description":"GET /v1/files/{file_key}/nodes","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File to export JSON from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…","schema":{"type":"string","description":"File to export JSON from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…"}},{"name":"ids","in":"query","required":true,"description":"A comma separated list of node IDs to retrieve and convert.","schema":{"type":"string","description":"A comma separated list of node IDs to retrieve and convert."}},{"name":"version","in":"query","required":false,"description":"A specific version ID to get. Omitting this will get the current version of the file.","schema":{"type":"string","description":"A specific version ID to get. Omitting this will get the current version of the file."}},{"name":"depth","in":"query","required":false,"description":"Positive integer representing how deep into the node tree to traverse. For example, setting this to 1 will return only the children…","schema":{"type":"number","description":"Positive integer representing how deep into the node tree to traverse. For example, setting this to 1 will return only the children…"}},{"name":"geometry","in":"query","required":false,"description":"Set to \"paths\" to export vector data.","schema":{"type":"string","description":"Set to \"paths\" to export vector data."}},{"name":"plugin_data","in":"query","required":false,"description":"A comma separated list of plugin IDs and/or the string \"shared\". Any data present in the document written by those plugins will be…","schema":{"type":"string","description":"A comma separated list of plugin IDs and/or the string \"shared\". Any data present in the document written by those plugins will be…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-images":{"get":{"operationId":"business_figma_get_images","summary":"Render images of file nodes","description":"GET /v1/images/{file_key}","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File to export images from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…","schema":{"type":"string","description":"File to export images from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…"}},{"name":"ids","in":"query","required":true,"description":"A comma separated list of node IDs to render.","schema":{"type":"string","description":"A comma separated list of node IDs to render."}},{"name":"version","in":"query","required":false,"description":"A specific version ID to get. Omitting this will get the current version of the file.","schema":{"type":"string","description":"A specific version ID to get. Omitting this will get the current version of the file."}},{"name":"scale","in":"query","required":false,"description":"A number between 0.01 and 4, the image scaling factor.","schema":{"type":"number","description":"A number between 0.01 and 4, the image scaling factor."}},{"name":"format","in":"query","required":false,"description":"A string enum for the image output format.","schema":{"type":"string","enum":["jpg","png","svg","pdf"],"default":"png","description":"A string enum for the image output format."}},{"name":"svg_outline_text","in":"query","required":false,"description":"Whether text elements are rendered as outlines (vector paths) or as ` ` elements in SVGs. Rendering text elements as outlines guarantees…","schema":{"type":"boolean","default":true,"description":"Whether text elements are rendered as outlines (vector paths) or as ` ` elements in SVGs. Rendering text elements as outlines guarantees…"}},{"name":"svg_include_id","in":"query","required":false,"description":"Whether to include id attributes for all SVG elements. Adds the layer name to the `id` attribute of an svg element.","schema":{"type":"boolean","default":false,"description":"Whether to include id attributes for all SVG elements. Adds the layer name to the `id` attribute of an svg element."}},{"name":"svg_include_node_id","in":"query","required":false,"description":"Whether to include node id attributes for all SVG elements. Adds the node id to a `data-node-id` attribute of an svg element.","schema":{"type":"boolean","default":false,"description":"Whether to include node id attributes for all SVG elements. Adds the node id to a `data-node-id` attribute of an svg element."}},{"name":"svg_simplify_stroke","in":"query","required":false,"description":"Whether to simplify inside/outside strokes and use stroke attribute if possible instead of ` `.","schema":{"type":"boolean","default":true,"description":"Whether to simplify inside/outside strokes and use stroke attribute if possible instead of ` `."}},{"name":"contents_only","in":"query","required":false,"description":"Whether content that overlaps the node should be excluded from rendering. Passing false (i.e., rendering overlaps) may increase processing…","schema":{"type":"boolean","default":true,"description":"Whether content that overlaps the node should be excluded from rendering. Passing false (i.e., rendering overlaps) may increase processing…"}},{"name":"use_absolute_bounds","in":"query","required":false,"description":"Use the full dimensions of the node regardless of whether or not it is cropped or the space around it is empty. Use this to export text…","schema":{"type":"boolean","default":false,"description":"Use the full dimensions of the node regardless of whether or not it is cropped or the space around it is empty. Use this to export text…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-image-fills":{"get":{"operationId":"business_figma_get_image_fills","summary":"Get image fills","description":"GET /v1/files/{file_key}/images","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File to get image URLs from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…","schema":{"type":"string","description":"File to get image URLs from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-file-meta":{"get":{"operationId":"business_figma_get_file_meta","summary":"Get file metadata","description":"GET /v1/files/{file_key}/meta","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File to get metadata for. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…","schema":{"type":"string","description":"File to get metadata for. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/post-file-duplicate":{"post":{"operationId":"business_figma_post_file_duplicate","summary":"Duplicate a file","description":"POST /v1/files/{file_key}/duplicate","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file_key","body"],"properties":{"file_key":{"type":"string","description":"The key of the main file or branch to duplicate."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/post-team":{"post":{"operationId":"business_figma_post_team","summary":"Create a team","description":"POST /v1/teams","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/get-team":{"get":{"operationId":"business_figma_get_team","summary":"Get a team","description":"GET /v1/teams/{team_id}","tags":["business"],"parameters":[{"name":"team_id","in":"query","required":true,"description":"The ID of the team.","schema":{"type":"string","description":"The ID of the team."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/post-team-invites":{"post":{"operationId":"business_figma_post_team_invites","summary":"Invite users to a team","description":"POST /v1/teams/{team_id}/invites","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["team_id","body"],"properties":{"team_id":{"type":"string","description":"The ID of the team to invite users to."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/post-team-folder":{"post":{"operationId":"business_figma_post_team_folder","summary":"Create a folder","description":"POST /v1/teams/{team_id}/folders","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["team_id","body"],"properties":{"team_id":{"type":"string","description":"The ID of the team in which to create the folder."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/get-team-folders":{"get":{"operationId":"business_figma_get_team_folders","summary":"Get top-level folders in a team","description":"GET /v2/teams/{team_id}/folders","tags":["business"],"parameters":[{"name":"team_id","in":"query","required":true,"description":"ID of the team to list folders from","schema":{"type":"string","description":"ID of the team to list folders from"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-folder-folders":{"get":{"operationId":"business_figma_get_folder_folders","summary":"Get subfolders in a folder","description":"GET /v2/folders/{folder_id}/folders","tags":["business"],"parameters":[{"name":"folder_id","in":"query","required":true,"description":"ID of the parent folder to list subfolders from","schema":{"type":"string","description":"ID of the parent folder to list subfolders from"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-folder-files":{"get":{"operationId":"business_figma_get_folder_files","summary":"Get files in a folder","description":"GET /v2/folders/{folder_id}/files","tags":["business"],"parameters":[{"name":"folder_id","in":"query","required":true,"description":"ID of the folder to list files from","schema":{"type":"string","description":"ID of the folder to list files from"}},{"name":"branch_data","in":"query","required":false,"description":"Returns branch metadata in the response for each main file with a branch inside the folder.","schema":{"type":"boolean","default":false,"description":"Returns branch metadata in the response for each main file with a branch inside the folder."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-folder-meta":{"get":{"operationId":"business_figma_get_folder_meta","summary":"Get folder metadata","description":"GET /v2/folders/{folder_id}/meta","tags":["business"],"parameters":[{"name":"folder_id","in":"query","required":true,"description":"ID of the folder to get metadata for","schema":{"type":"string","description":"ID of the folder to get metadata for"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-file-versions":{"get":{"operationId":"business_figma_get_file_versions","summary":"Get versions of a file","description":"GET /v1/files/{file_key}/versions","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File to get version history from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get…","schema":{"type":"string","description":"File to get version history from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get…"}},{"name":"page_size","in":"query","required":false,"description":"The number of items returned in a page of the response. If not included, `page_size` is `30`.","schema":{"type":"number","description":"The number of items returned in a page of the response. If not included, `page_size` is `30`."}},{"name":"before","in":"query","required":false,"description":"A version ID for one of the versions in the history. Gets versions before this ID. Used for paginating. If the response is not paginated,…","schema":{"type":"number","description":"A version ID for one of the versions in the history. Gets versions before this ID. Used for paginating. If the response is not paginated,…"}},{"name":"after","in":"query","required":false,"description":"A version ID for one of the versions in the history. Gets versions after this ID. Used for paginating. If the response is not paginated,…","schema":{"type":"number","description":"A version ID for one of the versions in the history. Gets versions after this ID. Used for paginating. If the response is not paginated,…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-comments":{"get":{"operationId":"business_figma_get_comments","summary":"Get comments in a file","description":"GET /v1/files/{file_key}/comments","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File to get comments from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…","schema":{"type":"string","description":"File to get comments from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…"}},{"name":"as_md","in":"query","required":false,"description":"If enabled, will return comments as their markdown equivalents when applicable.","schema":{"type":"boolean","description":"If enabled, will return comments as their markdown equivalents when applicable."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/post-comment":{"post":{"operationId":"business_figma_post_comment","summary":"Add a comment to a file","description":"POST /v1/files/{file_key}/comments","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file_key","body"],"properties":{"file_key":{"type":"string","description":"File to add comments in. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/delete-comment":{"post":{"operationId":"business_figma_delete_comment","summary":"Delete a comment","description":"DELETE /v1/files/{file_key}/comments/{comment_id}","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file_key","comment_id"],"properties":{"file_key":{"type":"string","description":"File to delete comment from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…"},"comment_id":{"type":"string","description":"Comment id of comment to delete"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/get-comment-reactions":{"get":{"operationId":"business_figma_get_comment_reactions","summary":"Get reactions for a comment","description":"GET /v1/files/{file_key}/comments/{comment_id}/reactions","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File to get comment containing reactions from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query…","schema":{"type":"string","description":"File to get comment containing reactions from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query…"}},{"name":"comment_id","in":"query","required":true,"description":"ID of comment to get reactions from.","schema":{"type":"string","description":"ID of comment to get reactions from."}},{"name":"cursor","in":"query","required":false,"description":"Cursor for pagination, retrieved from the response of the previous call.","schema":{"type":"string","description":"Cursor for pagination, retrieved from the response of the previous call."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/post-comment-reaction":{"post":{"operationId":"business_figma_post_comment_reaction","summary":"Add a reaction to a comment","description":"POST /v1/files/{file_key}/comments/{comment_id}/reactions","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file_key","comment_id","body"],"properties":{"file_key":{"type":"string","description":"File to post comment reactions to. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to…"},"comment_id":{"type":"string","description":"ID of comment to react to."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/delete-comment-reaction":{"post":{"operationId":"business_figma_delete_comment_reaction","summary":"Delete a reaction","description":"DELETE /v1/files/{file_key}/comments/{comment_id}/reactions","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file_key","comment_id","emoji"],"properties":{"file_key":{"type":"string","description":"File to delete comment reaction from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to…"},"comment_id":{"type":"string","description":"ID of comment to delete reaction from."},"emoji":{"type":"string","description":"The emoji type of reaction as shortcode (e.g. `:heart:`, `:+1::skin-tone-2:`). The list of accepted emoji shortcodes can be found in [this…"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/get-me":{"get":{"operationId":"business_figma_get_me","summary":"Get current user","description":"GET /v1/me","tags":["business"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-team-components":{"get":{"operationId":"business_figma_get_team_components","summary":"Get team components","description":"GET /v1/teams/{team_id}/components","tags":["business"],"parameters":[{"name":"team_id","in":"query","required":true,"description":"Id of the team to list components from.","schema":{"type":"string","description":"Id of the team to list components from."}},{"name":"page_size","in":"query","required":false,"description":"Number of items to return in a paged list of results. Defaults to 30. Maximum of 1000.","schema":{"type":"number","default":30,"description":"Number of items to return in a paged list of results. Defaults to 30. Maximum of 1000."}},{"name":"after","in":"query","required":false,"description":"Cursor indicating which id after which to start retrieving components for. Exclusive with before. The cursor value is an internally…","schema":{"type":"number","description":"Cursor indicating which id after which to start retrieving components for. Exclusive with before. The cursor value is an internally…"}},{"name":"before","in":"query","required":false,"description":"Cursor indicating which id before which to start retrieving components for. Exclusive with after. The cursor value is an internally…","schema":{"type":"number","description":"Cursor indicating which id before which to start retrieving components for. Exclusive with after. The cursor value is an internally…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-file-components":{"get":{"operationId":"business_figma_get_file_components","summary":"Get file components","description":"GET /v1/files/{file_key}/components","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File to list components from. This must be a main file key, not a branch key, as it is not possible to publish from branches.","schema":{"type":"string","description":"File to list components from. This must be a main file key, not a branch key, as it is not possible to publish from branches."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-component":{"get":{"operationId":"business_figma_get_component","summary":"Get component","description":"GET /v1/components/{key}","tags":["business"],"parameters":[{"name":"key","in":"query","required":true,"description":"The unique identifier of the component.","schema":{"type":"string","description":"The unique identifier of the component."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-team-component-sets":{"get":{"operationId":"business_figma_get_team_component_sets","summary":"Get team component sets","description":"GET /v1/teams/{team_id}/component_sets","tags":["business"],"parameters":[{"name":"team_id","in":"query","required":true,"description":"Id of the team to list component sets from.","schema":{"type":"string","description":"Id of the team to list component sets from."}},{"name":"page_size","in":"query","required":false,"description":"Number of items to return in a paged list of results. Defaults to 30.","schema":{"type":"number","default":30,"description":"Number of items to return in a paged list of results. Defaults to 30."}},{"name":"after","in":"query","required":false,"description":"Cursor indicating which id after which to start retrieving component sets for. Exclusive with before. The cursor value is an internally…","schema":{"type":"number","description":"Cursor indicating which id after which to start retrieving component sets for. Exclusive with before. The cursor value is an internally…"}},{"name":"before","in":"query","required":false,"description":"Cursor indicating which id before which to start retrieving component sets for. Exclusive with after. The cursor value is an internally…","schema":{"type":"number","description":"Cursor indicating which id before which to start retrieving component sets for. Exclusive with after. The cursor value is an internally…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-file-component-sets":{"get":{"operationId":"business_figma_get_file_component_sets","summary":"Get file component sets","description":"GET /v1/files/{file_key}/component_sets","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File to list component sets from. This must be a main file key, not a branch key, as it is not possible to publish from branches.","schema":{"type":"string","description":"File to list component sets from. This must be a main file key, not a branch key, as it is not possible to publish from branches."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-component-set":{"get":{"operationId":"business_figma_get_component_set","summary":"Get component set","description":"GET /v1/component_sets/{key}","tags":["business"],"parameters":[{"name":"key","in":"query","required":true,"description":"The unique identifier of the component set.","schema":{"type":"string","description":"The unique identifier of the component set."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-team-styles":{"get":{"operationId":"business_figma_get_team_styles","summary":"Get team styles","description":"GET /v1/teams/{team_id}/styles","tags":["business"],"parameters":[{"name":"team_id","in":"query","required":true,"description":"Id of the team to list styles from.","schema":{"type":"string","description":"Id of the team to list styles from."}},{"name":"page_size","in":"query","required":false,"description":"Number of items to return in a paged list of results. Defaults to 30.","schema":{"type":"number","default":30,"description":"Number of items to return in a paged list of results. Defaults to 30."}},{"name":"after","in":"query","required":false,"description":"Cursor indicating which id after which to start retrieving styles for. Exclusive with before. The cursor value is an internally tracked…","schema":{"type":"number","description":"Cursor indicating which id after which to start retrieving styles for. Exclusive with before. The cursor value is an internally tracked…"}},{"name":"before","in":"query","required":false,"description":"Cursor indicating which id before which to start retrieving styles for. Exclusive with after. The cursor value is an internally tracked…","schema":{"type":"number","description":"Cursor indicating which id before which to start retrieving styles for. Exclusive with after. The cursor value is an internally tracked…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-file-styles":{"get":{"operationId":"business_figma_get_file_styles","summary":"Get file styles","description":"GET /v1/files/{file_key}/styles","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File to list styles from. This must be a main file key, not a branch key, as it is not possible to publish from branches.","schema":{"type":"string","description":"File to list styles from. This must be a main file key, not a branch key, as it is not possible to publish from branches."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-style":{"get":{"operationId":"business_figma_get_style","summary":"Get style","description":"GET /v1/styles/{key}","tags":["business"],"parameters":[{"name":"key","in":"query","required":true,"description":"The unique identifier of the style.","schema":{"type":"string","description":"The unique identifier of the style."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-webhooks":{"get":{"operationId":"business_figma_get_webhooks","summary":"Get webhooks by context or plan","description":"GET /v2/webhooks","tags":["business"],"parameters":[{"name":"context","in":"query","required":false,"description":"Context to create the resource on. Should be \"team\", \"project\", or \"file\".","schema":{"type":"string","description":"Context to create the resource on. Should be \"team\", \"project\", or \"file\"."}},{"name":"context_id","in":"query","required":false,"description":"The id of the context that you want to get attached webhooks for. If you're using context_id, you cannot use plan_api_id.","schema":{"type":"string","description":"The id of the context that you want to get attached webhooks for. If you're using context_id, you cannot use plan_api_id."}},{"name":"plan_api_id","in":"query","required":false,"description":"The id of your plan. Use this to get all webhooks for all contexts you have access to. If you're using plan_api_id, you cannot use context…","schema":{"type":"string","description":"The id of your plan. Use this to get all webhooks for all contexts you have access to. If you're using plan_api_id, you cannot use context…"}},{"name":"cursor","in":"query","required":false,"description":"If you're using plan_api_id, this is the cursor to use for pagination. If you're using context or context_id, this parameter is ignored.…","schema":{"type":"string","description":"If you're using plan_api_id, this is the cursor to use for pagination. If you're using context or context_id, this parameter is ignored.…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/post-webhook":{"post":{"operationId":"business_figma_post_webhook","summary":"Create a webhook","description":"POST /v2/webhooks","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/get-webhook":{"get":{"operationId":"business_figma_get_webhook","summary":"Get a webhook","description":"GET /v2/webhooks/{webhook_id}","tags":["business"],"parameters":[{"name":"webhook_id","in":"query","required":true,"description":"ID of webhook to get","schema":{"type":"string","description":"ID of webhook to get"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/put-webhook":{"post":{"operationId":"business_figma_put_webhook","summary":"Update a webhook","description":"PUT /v2/webhooks/{webhook_id}","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["webhook_id","body"],"properties":{"webhook_id":{"type":"string","description":"ID of webhook to update"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/delete-webhook":{"post":{"operationId":"business_figma_delete_webhook","summary":"Delete a webhook","description":"DELETE /v2/webhooks/{webhook_id}","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["webhook_id"],"properties":{"webhook_id":{"type":"string","description":"ID of webhook to delete"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/get-webhook-requests":{"get":{"operationId":"business_figma_get_webhook_requests","summary":"Get webhook requests","description":"GET /v2/webhooks/{webhook_id}/requests","tags":["business"],"parameters":[{"name":"webhook_id","in":"query","required":true,"description":"The id of the webhook subscription you want to see events from","schema":{"type":"string","description":"The id of the webhook subscription you want to see events from"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-activity-logs":{"get":{"operationId":"business_figma_get_activity_logs","summary":"Get activity logs","description":"GET /v1/activity_logs","tags":["business"],"parameters":[{"name":"events","in":"query","required":false,"description":"Event type(s) to include in the response. Can have multiple values separated by comma. All events are returned by default.","schema":{"type":"string","description":"Event type(s) to include in the response. Can have multiple values separated by comma. All events are returned by default."}},{"name":"start_time","in":"query","required":false,"description":"Unix timestamp of the least recent event to include. This param defaults to one year ago if unspecified.","schema":{"type":"number","description":"Unix timestamp of the least recent event to include. This param defaults to one year ago if unspecified."}},{"name":"end_time","in":"query","required":false,"description":"Unix timestamp of the most recent event to include. This param defaults to the current timestamp if unspecified.","schema":{"type":"number","description":"Unix timestamp of the most recent event to include. This param defaults to the current timestamp if unspecified."}},{"name":"limit","in":"query","required":false,"description":"Maximum number of events to return. This param defaults to 1000 if unspecified.","schema":{"type":"number","description":"Maximum number of events to return. This param defaults to 1000 if unspecified."}},{"name":"order","in":"query","required":false,"description":"Event order by timestamp. This param can be either \"asc\" (default) or \"desc\".","schema":{"type":"string","enum":["asc","desc"],"default":"asc","description":"Event order by timestamp. This param can be either \"asc\" (default) or \"desc\"."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-developer-logs":{"post":{"operationId":"business_figma_get_developer_logs","summary":"Get developer logs","description":"POST /v1/developer_logs","tags":["business"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/get-ai-usage-daily":{"get":{"operationId":"business_figma_get_ai_usage_daily","summary":"Get daily AI credit usage","description":"GET /v1/ai_usage/daily","tags":["business"],"parameters":[{"name":"start_date","in":"query","required":true,"description":"The first day to include, inclusive, as a `YYYY-MM-DD` calendar date (UTC). Required. Must be on or after `2025-12-01` and no more than…","schema":{"type":"string","description":"The first day to include, inclusive, as a `YYYY-MM-DD` calendar date (UTC). Required. Must be on or after `2025-12-01` and no more than…"}},{"name":"end_date","in":"query","required":true,"description":"The last day to include, inclusive, as a `YYYY-MM-DD` calendar date (UTC). Required. Must be on or after `start_date` and the current UTC…","schema":{"type":"string","description":"The last day to include, inclusive, as a `YYYY-MM-DD` calendar date (UTC). Required. Must be on or after `start_date` and the current UTC…"}},{"name":"user_email","in":"query","required":false,"description":"Restrict the results to a single Figma user, identified by email. When omitted, rows for every user in the plan with usage in the range…","schema":{"type":"string","description":"Restrict the results to a single Figma user, identified by email. When omitted, rows for every user in the plan with usage in the range…"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of rows to return. This param defaults to 1000 if unspecified, and may not exceed 1000.","schema":{"type":"integer","default":1000,"description":"Maximum number of rows to return. This param defaults to 1000 if unspecified, and may not exceed 1000."}},{"name":"cursor","in":"query","required":false,"description":"An opaque cursor returned from a previous request, used for pagination.","schema":{"type":"string","description":"An opaque cursor returned from a previous request, used for pagination."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-payments":{"get":{"operationId":"business_figma_get_payments","summary":"Get payments","description":"GET /v1/payments","tags":["business"],"parameters":[{"name":"plugin_payment_token","in":"query","required":false,"description":"Short-lived token returned from \"getPluginPaymentTokenAsync\" in the plugin payments API and used to authenticate to this endpoint. Read…","schema":{"type":"string","description":"Short-lived token returned from \"getPluginPaymentTokenAsync\" in the plugin payments API and used to authenticate to this endpoint. Read…"}},{"name":"user_id","in":"query","required":false,"description":"The ID of the user to query payment information about. You can get the user ID by having the user OAuth2 to the Figma REST API.","schema":{"type":"string","description":"The ID of the user to query payment information about. You can get the user ID by having the user OAuth2 to the Figma REST API."}},{"name":"community_file_id","in":"query","required":false,"description":"The ID of the Community file to query a user's payment information on. You can get the Community file ID from the file's Community page…","schema":{"type":"string","description":"The ID of the Community file to query a user's payment information on. You can get the Community file ID from the file's Community page…"}},{"name":"plugin_id","in":"query","required":false,"description":"The ID of the plugin to query a user's payment information on. You can get the plugin ID from the plugin's manifest, or from the plugin's…","schema":{"type":"string","description":"The ID of the plugin to query a user's payment information on. You can get the plugin ID from the plugin's manifest, or from the plugin's…"}},{"name":"widget_id","in":"query","required":false,"description":"The ID of the widget to query a user's payment information on. You can get the widget ID from the widget's manifest, or from the widget's…","schema":{"type":"string","description":"The ID of the widget to query a user's payment information on. You can get the widget ID from the widget's manifest, or from the widget's…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-local-variables":{"get":{"operationId":"business_figma_get_local_variables","summary":"Get local variables","description":"GET /v1/files/{file_key}/variables/local","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File to get variables from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…","schema":{"type":"string","description":"File to get variables from. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-published-variables":{"get":{"operationId":"business_figma_get_published_variables","summary":"Get published variables","description":"GET /v1/files/{file_key}/variables/published","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File to get variables from. This must be a main file key, not a branch key, as it is not possible to publish from branches.","schema":{"type":"string","description":"File to get variables from. This must be a main file key, not a branch key, as it is not possible to publish from branches."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/post-variables":{"post":{"operationId":"business_figma_post_variables","summary":"Create/modify/delete variables","description":"POST /v1/files/{file_key}/variables","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file_key","body"],"properties":{"file_key":{"type":"string","description":"File to modify variables in. This can be a file key or branch key. Use `GET /v1/files/:key` with the `branch_data` query param to get the…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/get-dev-resources":{"get":{"operationId":"business_figma_get_dev_resources","summary":"Get dev resources","description":"GET /v1/files/{file_key}/dev_resources","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"The file to get the dev resources from. This must be a main file key, not a branch key.","schema":{"type":"string","description":"The file to get the dev resources from. This must be a main file key, not a branch key."}},{"name":"node_ids","in":"query","required":false,"description":"Comma separated list of nodes that you care about in the document. If specified, only dev resources attached to these nodes will be…","schema":{"type":"string","description":"Comma separated list of nodes that you care about in the document. If specified, only dev resources attached to these nodes will be…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/post-dev-resources":{"post":{"operationId":"business_figma_post_dev_resources","summary":"Create dev resources","description":"POST /v1/dev_resources","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/put-dev-resources":{"post":{"operationId":"business_figma_put_dev_resources","summary":"Update dev resources","description":"PUT /v1/dev_resources","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/delete-dev-resource":{"post":{"operationId":"business_figma_delete_dev_resource","summary":"Delete dev resource","description":"DELETE /v1/files/{file_key}/dev_resources/{dev_resource_id}","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file_key","dev_resource_id"],"properties":{"file_key":{"type":"string","description":"The file to delete the dev resource from. This must be a main file key, not a branch key."},"dev_resource_id":{"type":"string","description":"The id of the dev resource to delete."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:figma/get-library-analytics-component-actions":{"get":{"operationId":"business_figma_get_library_analytics_component_actions","summary":"Get library analytics component action data.","description":"GET /v1/analytics/libraries/{file_key}/component/actions","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File key of the library to fetch analytics data for.","schema":{"type":"string","description":"File key of the library to fetch analytics data for."}},{"name":"cursor","in":"query","required":false,"description":"Cursor indicating what page of data to fetch. Obtained from prior API call.","schema":{"type":"string","description":"Cursor indicating what page of data to fetch. Obtained from prior API call."}},{"name":"group_by","in":"query","required":true,"description":"A dimension to group returned analytics data by.","schema":{"type":"string","enum":["component","team"],"description":"A dimension to group returned analytics data by."}},{"name":"start_date","in":"query","required":false,"description":"ISO 8601 date string (YYYY-MM-DD) of the earliest week to include. Dates are rounded back to the nearest start of a week. Defaults to one…","schema":{"type":"string","description":"ISO 8601 date string (YYYY-MM-DD) of the earliest week to include. Dates are rounded back to the nearest start of a week. Defaults to one…"}},{"name":"end_date","in":"query","required":false,"description":"ISO 8601 date string (YYYY-MM-DD) of the latest week to include. Dates are rounded forward to the nearest end of a week. Defaults to the…","schema":{"type":"string","description":"ISO 8601 date string (YYYY-MM-DD) of the latest week to include. Dates are rounded forward to the nearest end of a week. Defaults to the…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-library-analytics-component-usages":{"get":{"operationId":"business_figma_get_library_analytics_component_usages","summary":"Get library analytics component usage data.","description":"GET /v1/analytics/libraries/{file_key}/component/usages","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File key of the library to fetch analytics data for.","schema":{"type":"string","description":"File key of the library to fetch analytics data for."}},{"name":"cursor","in":"query","required":false,"description":"Cursor indicating what page of data to fetch. Obtained from prior API call.","schema":{"type":"string","description":"Cursor indicating what page of data to fetch. Obtained from prior API call."}},{"name":"group_by","in":"query","required":true,"description":"A dimension to group returned analytics data by.","schema":{"type":"string","enum":["component","file"],"description":"A dimension to group returned analytics data by."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-library-analytics-style-actions":{"get":{"operationId":"business_figma_get_library_analytics_style_actions","summary":"Get library analytics style action data.","description":"GET /v1/analytics/libraries/{file_key}/style/actions","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File key of the library to fetch analytics data for.","schema":{"type":"string","description":"File key of the library to fetch analytics data for."}},{"name":"cursor","in":"query","required":false,"description":"Cursor indicating what page of data to fetch. Obtained from prior API call.","schema":{"type":"string","description":"Cursor indicating what page of data to fetch. Obtained from prior API call."}},{"name":"group_by","in":"query","required":true,"description":"A dimension to group returned analytics data by.","schema":{"type":"string","enum":["style","team"],"description":"A dimension to group returned analytics data by."}},{"name":"start_date","in":"query","required":false,"description":"ISO 8601 date string (YYYY-MM-DD) of the earliest week to include. Dates are rounded back to the nearest start of a week. Defaults to one…","schema":{"type":"string","description":"ISO 8601 date string (YYYY-MM-DD) of the earliest week to include. Dates are rounded back to the nearest start of a week. Defaults to one…"}},{"name":"end_date","in":"query","required":false,"description":"ISO 8601 date string (YYYY-MM-DD) of the latest week to include. Dates are rounded forward to the nearest end of a week. Defaults to the…","schema":{"type":"string","description":"ISO 8601 date string (YYYY-MM-DD) of the latest week to include. Dates are rounded forward to the nearest end of a week. Defaults to the…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-library-analytics-style-usages":{"get":{"operationId":"business_figma_get_library_analytics_style_usages","summary":"Get library analytics style usage data.","description":"GET /v1/analytics/libraries/{file_key}/style/usages","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File key of the library to fetch analytics data for.","schema":{"type":"string","description":"File key of the library to fetch analytics data for."}},{"name":"cursor","in":"query","required":false,"description":"Cursor indicating what page of data to fetch. Obtained from prior API call.","schema":{"type":"string","description":"Cursor indicating what page of data to fetch. Obtained from prior API call."}},{"name":"group_by","in":"query","required":true,"description":"A dimension to group returned analytics data by.","schema":{"type":"string","enum":["style","file"],"description":"A dimension to group returned analytics data by."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-library-analytics-variable-actions":{"get":{"operationId":"business_figma_get_library_analytics_variable_actions","summary":"Get library analytics variable action data.","description":"GET /v1/analytics/libraries/{file_key}/variable/actions","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File key of the library to fetch analytics data for.","schema":{"type":"string","description":"File key of the library to fetch analytics data for."}},{"name":"cursor","in":"query","required":false,"description":"Cursor indicating what page of data to fetch. Obtained from prior API call.","schema":{"type":"string","description":"Cursor indicating what page of data to fetch. Obtained from prior API call."}},{"name":"group_by","in":"query","required":true,"description":"A dimension to group returned analytics data by.","schema":{"type":"string","enum":["variable","team"],"description":"A dimension to group returned analytics data by."}},{"name":"start_date","in":"query","required":false,"description":"ISO 8601 date string (YYYY-MM-DD) of the earliest week to include. Dates are rounded back to the nearest start of a week. Defaults to one…","schema":{"type":"string","description":"ISO 8601 date string (YYYY-MM-DD) of the earliest week to include. Dates are rounded back to the nearest start of a week. Defaults to one…"}},{"name":"end_date","in":"query","required":false,"description":"ISO 8601 date string (YYYY-MM-DD) of the latest week to include. Dates are rounded forward to the nearest end of a week. Defaults to the…","schema":{"type":"string","description":"ISO 8601 date string (YYYY-MM-DD) of the latest week to include. Dates are rounded forward to the nearest end of a week. Defaults to the…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-library-analytics-variable-usages":{"get":{"operationId":"business_figma_get_library_analytics_variable_usages","summary":"Get library analytics variable usage data.","description":"GET /v1/analytics/libraries/{file_key}/variable/usages","tags":["business"],"parameters":[{"name":"file_key","in":"query","required":true,"description":"File key of the library to fetch analytics data for.","schema":{"type":"string","description":"File key of the library to fetch analytics data for."}},{"name":"cursor","in":"query","required":false,"description":"Cursor indicating what page of data to fetch. Obtained from prior API call.","schema":{"type":"string","description":"Cursor indicating what page of data to fetch. Obtained from prior API call."}},{"name":"group_by","in":"query","required":true,"description":"A dimension to group returned analytics data by.","schema":{"type":"string","enum":["variable","file"],"description":"A dimension to group returned analytics data by."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:figma/get-oembed":{"get":{"operationId":"business_figma_get_oembed","summary":"Get oEmbed data","description":"GET /v1/oembed","tags":["business"],"parameters":[{"name":"url","in":"query","required":true,"description":"The URL of the Figma file or published Make site to retrieve oEmbed data for.","schema":{"type":"string","description":"The URL of the Figma file or published Make site to retrieve oEmbed data for."}},{"name":"maxwidth","in":"query","required":false,"description":"Maximum width of the embed in pixels. Defaults to 800. The response width will be adjusted to maintain a 16:9 aspect ratio with maxheight.","schema":{"type":"integer","default":800,"description":"Maximum width of the embed in pixels. Defaults to 800. The response width will be adjusted to maintain a 16:9 aspect ratio with maxheight."}},{"name":"maxheight","in":"query","required":false,"description":"Maximum height of the embed in pixels. Defaults to 450. The response height will be adjusted to maintain a 16:9 aspect ratio with maxwidth.","schema":{"type":"integer","default":450,"description":"Maximum height of the embed in pixels. Defaults to 450. The response height will be adjusted to maintain a 16:9 aspect ratio with maxwidth."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}