With the Content API, you can make requests to retrieve data about any of your models within Builder. This page details special exceptions for particular models, or any other details to be aware of when working with the Content API.
Requesting data for figma-import models differs depending on whether you are requesting a single or multiple entries.
To fetch a single figma-import entry, make a request to the following URL, replacing <IMPORT_ID>
and <PUBLIC_API_KEY>
as is appropriate.
http://cdn.builder.io/api/v3/content/figma-imports/<IMPORT_ID>?apiKey=<PUBLIC_API_KEY>
To fetch multiple figma-import entries, you must also add your Private API key to the request. Make the request to the following URL, replacing <PUBLIC_API_KEY>
with your key.
http://cdn.builder.io/api/v3/content/figma-imports?apiKey=<PUBLIC_API_KEY>
As part of the request, include your Private API key within the Authorization header.
Authorization: Bearer <PRIVATE_API_KEY>
Read more about how Builder users Cookies, or about the GDPR and US compliance.