Endpoints
The GET discovery endpoint allows you to retrieve text events that have occurred in Figma files throughout your organization. You can specify a start date and an end date to determine the time range for which you want to retrieve text events. The API returns links to JSON files containing the text events, organized by hour. Each link is valid for a specified duration, which you can set in your request.
GET text events
Fetch up to 24 hours of text events for Figma files in your organization.
info
This is a Tier 2 endpoint and requires the org:discovery_read
scope.
HTTP endpoint
GET /v1/discovery
Return value
{
"error": Boolean,
"status": Number,
"meta": [
{
"urls": Record<String, Array<String>>,
}
]
"i18n": String | null,
"message?": String | null,
}
Query parameters | Description |
---|---|
start_date |
|
end_date |
|
file_ttl_in_seconds |
|
Response
{
"error": Boolean,
"status": Number,
"meta": {
"urls": Record<String, Array<String>>,
},
"i18n": String | null,
"message"?: String | null,
}
Error codes | Description |
---|---|
400 | Request query parameters are malformed. |
401 | The OAuth token is invalid. |
403 | The OAuth token is invalid. |
429 | Too many request have been made (more than 20 per second). |
500 | An error has occurred while the Discovery API was trying to respond. |
Example request
GET https://api.figma.com/v1/discovery?start_date=2024-01-01T00:00:00Z&end_date=2024-01-01T02:00:00Z
Example response
{
"error": false,
"status": 200,
"meta": {
"urls": {
"2024/01/01/00": ["https://aws-s3-download-1.com"],
"2024/01/01/01": ["https://aws-s3-download-2.com"],
"2024/01/01/02": ["https://aws-s3-download-3.com"]
}
},
"i18n": null
}