JSON Web Key Set
Retrieve the JSON Web Key Set for token verification
GET
/
oauth
/
jwks
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx();
const response = await client.oauth.retrieveJwks();
console.log(response.keys);from telnyx import Telnyx
client = Telnyx()
response = client.oauth.retrieve_jwks()
print(response.keys)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.OAuth.GetJwks(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Keys)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.oauth.OAuthRetrieveJwksParams;
import com.telnyx.sdk.models.oauth.OAuthRetrieveJwksResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
OAuthRetrieveJwksResponse response = client.oauth().retrieveJwks();
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
response = telnyx.oauth.retrieve_jwks
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->oauth->retrieveJwks();
var_dump($response);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx oauth retrieve-jwks \
--api-key 'My API Key'curl --request GET \
--url https://api.telnyx.com/v2/oauth/jwks{
"keys": [
{
"kty": "<string>",
"use": "<string>",
"alg": "<string>",
"kid": "<string>"
}
]
}{
"error": "<string>",
"error_description": "<string>"
}{
"error": "<string>",
"error_description": "<string>"
}Response
JSON Web Key Set
Show child attributes
Show child attributes
Was this page helpful?
⌘I
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx();
const response = await client.oauth.retrieveJwks();
console.log(response.keys);from telnyx import Telnyx
client = Telnyx()
response = client.oauth.retrieve_jwks()
print(response.keys)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.OAuth.GetJwks(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Keys)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.oauth.OAuthRetrieveJwksParams;
import com.telnyx.sdk.models.oauth.OAuthRetrieveJwksResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
OAuthRetrieveJwksResponse response = client.oauth().retrieveJwks();
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
response = telnyx.oauth.retrieve_jwks
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->oauth->retrieveJwks();
var_dump($response);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx oauth retrieve-jwks \
--api-key 'My API Key'curl --request GET \
--url https://api.telnyx.com/v2/oauth/jwks{
"keys": [
{
"kty": "<string>",
"use": "<string>",
"alg": "<string>",
"kid": "<string>"
}
]
}{
"error": "<string>",
"error_description": "<string>"
}{
"error": "<string>",
"error_description": "<string>"
}