List function revisions
Lists a function’s ship history newest first, including per-ship failure stage and reason when recorded.
GET
/
compute
/
funcs
/
{id}
/
revisions
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.compute.funcs.retrieveRevisions('id');
console.log(response.meta);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
response = client.compute.funcs.retrieve_revisions(
"id",
)
print(response.meta)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.Compute.Funcs.GetRevisions(
context.TODO(),
"id",
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
var response = client.compute().funcs().retrieveRevisions("id");
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
response = telnyx.compute.funcs.retrieve_revisions("id")
puts(response)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$response = $client->compute->funcs->retrieveRevisions(
'id',
);
var_dump($response);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx compute:funcs retrieve-revisions \
--api-key 'My API Key' \
--id idcurl --request GET \
--url https://api.telnyx.com/v2/compute/funcs/{id}/revisions \
--header 'Authorization: Bearer <token>'{
"meta": {
"total_pages": 1,
"total_results": 2,
"page_number": 1,
"page_size": 10
},
"data": [
{
"record_type": "compute_func_revision",
"revision_id": "rev-01998f0a",
"image": "registry.example/function@sha256:abc",
"commit_sha": "3f8a1c2",
"shipped_by": "user@example.com",
"shipped_at": "2026-09-09T15:45:00.000Z",
"build_status": "build_ok",
"deploy_status": "deploy_ok",
"active": true,
"build_ok_at": "2026-09-09T15:44:41.000Z"
},
{
"record_type": "compute_func_revision",
"revision_id": "",
"image": "",
"commit_sha": "0d9c123",
"shipped_by": "user@example.com",
"shipped_at": "2026-09-09T14:30:00.000Z",
"build_status": "build_failed",
"deploy_status": "pending",
"active": false,
"failure_stage": "build",
"failure_reason": "TypeScript compilation failed."
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Function ID
Query Parameters
Required range:
x >= 1Required range:
1 <= x <= 250Was this page helpful?
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.compute.funcs.retrieveRevisions('id');
console.log(response.meta);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
response = client.compute.funcs.retrieve_revisions(
"id",
)
print(response.meta)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.Compute.Funcs.GetRevisions(
context.TODO(),
"id",
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
var response = client.compute().funcs().retrieveRevisions("id");
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
response = telnyx.compute.funcs.retrieve_revisions("id")
puts(response)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$response = $client->compute->funcs->retrieveRevisions(
'id',
);
var_dump($response);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx compute:funcs retrieve-revisions \
--api-key 'My API Key' \
--id idcurl --request GET \
--url https://api.telnyx.com/v2/compute/funcs/{id}/revisions \
--header 'Authorization: Bearer <token>'{
"meta": {
"total_pages": 1,
"total_results": 2,
"page_number": 1,
"page_size": 10
},
"data": [
{
"record_type": "compute_func_revision",
"revision_id": "rev-01998f0a",
"image": "registry.example/function@sha256:abc",
"commit_sha": "3f8a1c2",
"shipped_by": "user@example.com",
"shipped_at": "2026-09-09T15:45:00.000Z",
"build_status": "build_ok",
"deploy_status": "deploy_ok",
"active": true,
"build_ok_at": "2026-09-09T15:44:41.000Z"
},
{
"record_type": "compute_func_revision",
"revision_id": "",
"image": "",
"commit_sha": "0d9c123",
"shipped_by": "user@example.com",
"shipped_at": "2026-09-09T14:30:00.000Z",
"build_status": "build_failed",
"deploy_status": "pending",
"active": false,
"failure_stage": "build",
"failure_reason": "TypeScript compilation failed."
}
]
}