List the latest version of every function
GET
/v1/t/adapters/edge/functions
const url = 'https://example.com/v1/t/adapters/edge/functions?offset=0&limit=10';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/t/adapters/edge/functions?offset=0&limit=10' \ --header 'Authorization: Bearer <token>'Only versions with is_latest = true, newest first by created_at.
Permission
This operation needs the permission scenario:template:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”offset
integer
limit
integer
Header Parameters
Section titled “Header Parameters”X-Tenant-Sid
string
Names the target tenant.
By principal:
- A tenant-scoped principal may omit it.
- A principal with no tenant of its own names one here.
Refused when:
- A tenant-scoped principal sends a value naming any other tenant.
- A principal with no tenant of its own omits it.
Responses
Section titled “Responses”One page of functions
Media typeapplication/json
object
ok
required
boolean
total
required
integer
hasMore
required
boolean
results
required
Array<object>
object
slug
required
string
version
required
integer
original_code
required
string
Example
{ "ok": true}Domain error. A failed bundle comes as 400 with
err_code: INTERNAL_SERVER_ERROR. On a run route a bundle that could
not be rebuilt is this 400 too.
Media typeapplication/json
object
ok
required
boolean
error
required
string
err_code
required
string
Example
{ "ok": false, "err_code": "UNAUTHORIZED"}Unauthorized
Forbidden
The body, query or path params did not pass the zod schema
Media typeapplication/json
object
ok
required
boolean
error
required
string
issues
required
Zod issues as is
Array<object>
object
code
required
string
path
required
Array
message
required
string
Example
{ "ok": false, "error": "Validation failed"}Unexpected error, for example a database or a disk failure. The body
has err_code: INTERNAL_SERVER_ERROR.
Media typeapplication/json
object
ok
required
boolean
error
required
string
err_code
required
string
Example
{ "ok": false, "err_code": "UNAUTHORIZED"}Bad gateway (upstream adapter error)