Endpoints
Components and styles endpoints allow several ways to get information about published components and styles in a team library. You can get a list of components or styles using a team_id, or a specific component or style using a key.
GET team components
Get a paginated list of published components within a team library.:::info
This is a Tier 3 endpoint and requires the team_library_content:read
scope.
:::
HTTP Endpoint
GET /v1/teams/:team_id/components
Return value
{
"status": Number,
"error": Boolean,
"meta": {
"components": [
{
"key": String,
"file_key": String,
"node_id": String,
"thumbnail_url": String,
"name": String,
"description": String,
"updated_at": String,
"created_at": String,
"user": User,
"containing_frame": FrameInfo,
},
...
],
"cursor": {
"before": Number,
"after": Number,
},
},
}
Path parameters | Description |
---|---|
team_id |
|
Query parameters | Description |
---|---|
page_size |
|
after |
|
before |
|
Error codes | Description |
---|---|
400 | Error with the request. The message param on the response will describe the error. |
403 | Insufficient permission on the team. This could also indicate the developer / OAuth token is invalid or expired. |
404 | Requested resource was not found. |
GET file components
Get a list of published components within a file library.
This is a Tier 3 endpoint and requires the library_content:read
scope.
HTTP Endpoint
GET /v1/files/:file_key/components
Return value
{
"status": Number,
"error": Boolean,
"meta": {
"components": [
{
"key": String,
"file_key": String,
"node_id": String,
"thumbnail_url": String,
"name": String,
"description": String,
"updated_at": String,
"created_at": String,
"user": User,
"containing_frame": FrameInfo,
},
...
],
},
}
Path parameters | Description |
---|---|
file_key |
|
Error codes | Description |
---|---|
400 | Error with the request. The message param on the response will describe the error. |
403 | Insufficient permission on the team. This could also indicate the developer / OAuth token is invalid or expired. |
404 | Requested resource was not found. |
GET component
Get metadata on a component by key.
This is a Tier 3 endpoint and requires the library_assets:read
scope.
HTTP Endpoint
GET /v1/components/:key
Return value
{
"status": Number,
"error": Boolean,
"meta": {
"key": String,
"file_key": String,
"node_id": String,
"thumbnail_url": String,
"name": String,
"description": String,
"updated_at": String,
"created_at": String,
"user": User,
"containing_frame": FrameInfo,
},
}
Path parameters | Description |
---|---|
key |
|
Error codes | Description |
---|---|
400 | Error with the request. The message param on the response will describe the error. |
403 | Insufficient permission on the team. This could also indicate the developer / OAuth token is invalid or expired. |
404 | Requested resource was not found. |
GET team component sets
Get a paginated list of published component sets within a team library.
This is a Tier 3 endpoint and requires the team_library_content:read
scope.
HTTP Endpoint
GET /v1/teams/:team_id/component_sets
Return value
{
"status": Number,
"error": Boolean,
"meta": {
"component_sets": [
{
"key": String,
"file_key": String,
"node_id": String,
"thumbnail_url": String,
"name": String,
"description": String,
"updated_at": String,
"created_at": String,
"user": User,
"containing_frame": FrameInfo,
},
...
],
"cursor": {
"before": Number,
"after": Number,
},
},
}
Path parameters | Description |
---|---|
team_id |
|
Query parameters | Description |
---|---|
page_size |
|
after |
|
before |
|
Error codes | Description |
---|---|
400 | Error with the request. The message param on the response will describe the error. |
403 | Insufficient permission on the team. This could also indicate the developer / OAuth token is invalid or expired. |
404 | Requested resource was not found. |
GET file component sets
Get a list of published component sets within a file library.
This is a Tier 3 endpoint and requires the library_content:read
scope.
HTTP Endpoint
GET /v1/files/:file_key/component_sets
Return value
{
"status": Number,
"error": Boolean,
"meta": {
"component_sets": [
{
"key": String,
"file_key": String,
"node_id": String,
"thumbnail_url": String,
"name": String,
"description": String,
"updated_at": String,
"created_at": String,
"user": User,
"containing_frame": FrameInfo,
},
...
],
},
}
Path parameters | Description |
---|---|
file_key |
|
Error codes | Description |
---|---|
400 | Error with the request. The message param on the response will describe the error. |
403 | Insufficient permission on the team. This could also indicate the developer / OAuth token is invalid or expired. |
404 | Requested resource was not found. |
GET component set
Get metadata on a component set by key.
This is a Tier 3 endpoint and requires the library_assets:read
scope.
HTTP Endpoint
GET /v1/component_sets/:key
Return value
{
"status": Number,
"error": Boolean,
"meta": {
"key": String,
"file_key": String,
"node_id": String,
"thumbnail_url": String,
"name": String,
"description": String,
"updated_at": String,
"created_at": String,
"user": User,
"containing_frame": FrameInfo,
},
}
Path parameters | Description |
---|---|
key |
|
Error codes | Description |
---|---|
400 | Error with the request. The message param on the response will describe the error. |
403 | Insufficient permission on the team. This could also indicate the developer / OAuth token is invalid or expired. |
404 | Requested resource was not found. |
GET team styles
Get a paginated list of published styles within a team library.
This is a Tier 3 endpoint and requires the team_library_content:read
scope.
HTTP Endpoint
GET /v1/teams/:team_id/styles
Return value
{
"status": Number,
"error": Boolean,
"meta": {
"styles": [
{
"key": String,
"file_key": String,
"node_id": String,
"style_type": StyleType,
"thumbnail_url": String,
"name": String,
"description": String,
"updated_at": String,
"created_at": String,
"sort_position": String,
"user": User,
},
...
],
"cursor": {
"before": Number,
"after": Number,
},
},
}
Path parameters | Description |
---|---|
team_id |
|
Query parameters | Description |
---|---|
page_size |
|
after |
|
before |
|
Error codes | Description |
---|---|
400 | Error with the request. The message param on the response will describe the error. |
403 | Insufficient permission on the team. This could also indicate the developer / OAuth token is invalid or expired. |
404 | Requested resource was not found. |
GET file styles
Get a list of published styles within a file library.
This is a Tier 3 endpoint and requires the library_content:read
scope.
HTTP Endpoint
GET /v1/files/:file_key/styles
Return value
{
"status": Number,
"error": Boolean,
"meta": {
"styles": [
{
"key": String,
"file_key": String,
"node_id": String,
"style_type": StyleType,
"thumbnail_url": String,
"name": String,
"description": String,
"updated_at": String,
"created_at": String,
"sort_position": String,
"user": User,
},
...
],
},
}
Path parameters | Description |
---|---|
file_key |
|
Error codes | Description |
---|---|
400 | Error with the request. The message param on the response will describe the error. |
403 | Insufficient permission on the team. This could also indicate the developer / OAuth token is invalid or expired. |
404 | Requested resource was not found. |
GET style
Get metadata on a style by key.
This is a Tier 3 endpoint and requires the library_assets:read
scope.
HTTP Endpoint
GET /v1/styles/:key
Return value
{
"status": Number,
"error": Boolean,
"meta": {
"key": String,
"file_key": String,
"node_id": String,
"style_type": StyleType,
"thumbnail_url": String,
"name": String,
"description": String,
"updated_at": String,
"created_at": String,
"sort_position": String,
"user": User,
},
}
Path parameters | Description |
---|---|
key |
|
Error codes | Description |
---|---|
400 | Error with the request. The message param on the response will describe the error. |
403 | Insufficient permission on the team. This could also indicate the developer / OAuth token is invalid or expired. |
404 | Requested resource was not found. |