Skip to content

Get reference set

Viewing v2— current version

GET
/v2/workspaces/{workspace_id}/reference-sets/{reference_set_id}
curl --request GET \
--url https://api.app.layer.ai/api/v2/workspaces/:workspace_id/reference-sets/:reference_set_id \
--header 'Authorization: Bearer <token>'

New in v2. This endpoint has no v1 equivalent.

Get a reference set’s metadata and every attached file with a download URL.

workspace_id
required
Workspace Id

Id of the workspace that owns the resource.

string format: uuid

Id of the workspace that owns the resource.

reference_set_id
required
Reference Set Id

Id of the reference set.

string format: uuid

Id of the reference set.

Successful Response

Media typeapplication/json
GetReferenceSetOutput
object
reference_set_id
required
Reference Set Id
string format: uuid
name
required
Name

Display name of the reference set.

string
slug
required
Slug

URL-safe slug of the reference set.

string
description
Any of:
string
category
Any of:
StyleCategory
string
Allowed values: general character object scene effect animation
status
required
Status

Lifecycle status: draft, complete, or archived.

string
Allowed values: draft complete archived
asset_count
required
Asset Count

Number of files attached to the reference set.

integer
files
Files

Attached files, ordered by index.

Array<object>
ReferenceSetFile
object
file_id
required
File Id

ID of a file attached to the reference set.

string format: uuid
url
required
Url

Download URL for the file.

string
content_type
required
Content Type

MIME type, e.g. image/png or video/mp4.

string
index
required
Index

Ordinal position of the file within the reference set.

integer
caption
Any of:
string
view_type
Any of:
string
Example
{
"category": "general",
"status": "draft"
}

Unauthenticated — missing or invalid Bearer token.

Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer
detail
required
string
Example
{
"type": "https://api.layer.ai/errors/ERROR_CODE",
"title": "Error Title",
"status": 400,
"detail": "Human-readable description."
}

Forbidden — insufficient permissions.

Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer
detail
required
string
Example
{
"type": "https://api.layer.ai/errors/ERROR_CODE",
"title": "Error Title",
"status": 400,
"detail": "Human-readable description."
}

Resource not found.

Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer
detail
required
string
Example
{
"type": "https://api.layer.ai/errors/ERROR_CODE",
"title": "Error Title",
"status": 400,
"detail": "Human-readable description."
}

Invalid input parameters.

Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer
detail
required
string
Example
{
"type": "https://api.layer.ai/errors/ERROR_CODE",
"title": "Error Title",
"status": 400,
"detail": "Human-readable description."
}

Rate limited — too many concurrent requests.

Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer
detail
required
string
Example
{
"type": "https://api.layer.ai/errors/ERROR_CODE",
"title": "Error Title",
"status": 400,
"detail": "Human-readable description."
}

Internal server error.

Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer
detail
required
string
Example
{
"type": "https://api.layer.ai/errors/ERROR_CODE",
"title": "Error Title",
"status": 400,
"detail": "Human-readable description."
}