Skip to content

Get a package's schema and column values

GET
/v1/yac/metadata
curl --request GET \
--url 'https://example.com/v1/yac/metadata?refresh=false' \
--header 'Authorization: Bearer <token>'

Backend-introspected dataSchema/dataDomains for a package — the remote-mode replacement for browser-side CSV domain computation. Cached with a TTL; pass ?refresh=1 to force re-introspection.

package
Any of:
string
refresh
Refresh
boolean

Successful Response

Media typeapplication/json
MetadataResponse
object
package
required
Package
string
interactive
Interactive

Always false: the package is queried on the server, not in the browser.

boolean
dataSchema
required
Dataschema

The data package descriptor, introspected from the database.

object
key
additional properties
any
dataDomains
required
Datadomains

Each column’s values or range.

Array<object>
object
key
additional properties
any

Example

{
"interactive": false
}

Missing, invalid or expired token (detail).

Media typeapplication/json
ErrorResponse

An error body. Authentication failures carry FastAPI’s detail instead of error.

object
error
Any of:
string
code
Any of:
string
errors
Any of:
Array<string>
detail
Any of:
string

Example generated

{
"error": "example",
"code": "example",
"errors": [
"example"
],
"detail": [
{}
]
}

database_forbidden: the database rejected the caller’s forwarded identity (JWT passthrough).

Media typeapplication/json
ErrorResponse

An error body. Authentication failures carry FastAPI’s detail instead of error.

object
error
Any of:
string
code
Any of:
string
errors
Any of:
Array<string>
detail
Any of:
string

Example generated

{
"error": "example",
"code": "example",
"errors": [
"example"
],
"detail": [
{}
]
}

no_backend: no query backend is configured for the package.

Media typeapplication/json
ErrorResponse

An error body. Authentication failures carry FastAPI’s detail instead of error.

object
error
Any of:
string
code
Any of:
string
errors
Any of:
Array<string>
detail
Any of:
string

Example generated

{
"error": "example",
"code": "example",
"errors": [
"example"
],
"detail": [
{}
]
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}

The identity provider’s keys could not be fetched (JWT_JWKS_URL).

Media typeapplication/json
ErrorResponse

An error body. Authentication failures carry FastAPI’s detail instead of error.

object
error
Any of:
string
code
Any of:
string
errors
Any of:
Array<string>
detail
Any of:
string

Example generated

{
"error": "example",
"code": "example",
"errors": [
"example"
],
"detail": [
{}
]
}