List public keys
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/Credentials/PublicKeys';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
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://api.siprtc.io/v1/Accounts/AC000000000000000000/Credentials/PublicKeys \ --header 'Authorization: Basic <credentials>'Lists the RSA public keys registered for customer_key encryption. With customer_key encryption each recording’s and transcript’s data key is wrapped with the key named in RecordingSettings, so only the matching private key, which never leaves you, can decrypt it. Paging: Page is zero-based, PageSize defaults to 50 (at most 1000), and first_page_uri / next_page_uri / previous_page_uri and meta carry the paging links. Also served at PublicKeys.json. Only the account owner (Basic auth with the account’s Auth ID and Auth Secret) or a platform admin may call it; other logins get 403.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Account Auth ID (AC followed by the account id) the request acts on
Example
AC000000000000000000Query Parameters
Section titled “ Query Parameters ”Items per page, 1 to 1000 (larger values are capped). Default 50
Zero-based page number. Default 0
Responses
Section titled “ Responses ”OK
object
The public keys on this page.
object
Account the key belongs to.
When the key was registered, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
When the key was last renamed, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
SHA-256 fingerprint of the key.
Name given to the key, up to 64 characters.
The RSA public key, PEM “PUBLIC KEY”.
Public key SID: CR followed by 32 hex digits.
Absolute URL of this key.
Zero-based index of the last item on this page.
Relative URI of the first page, with the same filters.
The same paging links as absolute URLs, grouped under meta.
object
Absolute URL of the first page.
Name of the property that holds the items, e.g. recordings.
Absolute URL of the next page; null on the last page.
Zero-based number of this page.
Items per page.
Absolute URL of the previous page; null on the first page.
Absolute URL of this page.
Relative URI of the next page; null on the last page.
Zero-based number of this page.
Items per page.
Relative URI of the previous page; null on the first page.
Zero-based index of the first item on this page.
Relative URI of this page.
Example
{ "credentials": [ { "account_sid": "AC000000000000000000", "date_created": "Thu, 26 Nov 2026 10:15:30 +0000", "date_updated": "Thu, 26 Nov 2026 10:15:30 +0000", "friendly_name": "Legal archive key 2026", "public_key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBg...\n-----END PUBLIC KEY-----\n", "sid": "CR0123456789abcdef0123456789abcdef", "url": "https://api.siprtc.io/v1/Accounts/AC000000000000000000/Credentials/PublicKeys/CR0123456789abcdef0123456789abcdef" } ], "end": 49, "first_page_uri": "/v1/Accounts/AC000000000000000000/Recordings.json?Page=0&PageSize=50", "meta": { "first_page_url": "https://api.siprtc.io/v1/Accounts/AC000000000000000000/Recordings.json?Page=0&PageSize=50", "key": "recordings", "page": 0, "page_size": 50, "url": "https://api.siprtc.io/v1/Accounts/AC000000000000000000/Recordings.json?Page=0&PageSize=50" }, "page": 0, "page_size": 50, "start": 0, "uri": "/v1/Accounts/AC000000000000000000/Recordings.json?Page=0&PageSize=50"}Invalid parameter; the message names it (code 20001)
object
Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.
Human readable explanation.
Link to more information; currently always empty.
HTTP status code of the response.
Example
{ "code": 20404, "message": "the requested resource was not found", "more_info": "", "status": 404}Authentication failed: missing or invalid credentials (JSON string from the API gateway)
Example generated
exampleOnly the account owner or an admin may do this, or the login does not belong to this account (code 20403)
object
Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.
Human readable explanation.
Link to more information; currently always empty.
HTTP status code of the response.
Example
{ "code": 20404, "message": "the requested resource was not found", "more_info": "", "status": 404}Storage or account lookup unavailable (code 20503)
object
Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.
Human readable explanation.
Link to more information; currently always empty.
HTTP status code of the response.
Example
{ "code": 20404, "message": "the requested resource was not found", "more_info": "", "status": 404}