List registrations
client.zeroTrust.devices.registrations.list(RegistrationListParams { account_id, id, cursor, 10 more } params, RequestOptionsoptions?): CursorPagination<RegistrationListResponse { id, created_at, device, 9 more } >
GET/accounts/{account_id}/devices/registrations
Lists WARP registrations.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
List registrations
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const registrationListResponse of client.zeroTrust.devices.registrations.list({
account_id: 'account_id',
})) {
console.log(registrationListResponse.id);
}{
"errors": [],
"messages": [],
"result": [
{
"created_at": "2025-02-14T13:17:00Z",
"deleted_at": null,
"device": {
"client_version": "1.0.0",
"id": "32aa0404-78f1-49a4-99e0-97f575081356",
"name": "My Device"
},
"id": "11ffb86f-3f0c-4306-b4a2-e62f872b166a",
"key": "U+QTP50RsWfeLGHF4tlGDnmGeuwtsz46KCHr5OyhWq00Rsdfl45mgnQAuEJ6CO0YrkyTl9FUf5iB0bwYR3g4EEFEHhtu6jFaqfMrBMBSz6itv9HQXkaR9OieKQ==",
"key_type": "secp256r1",
"last_seen_at": "2025-02-14T13:17:00Z",
"revoked_at": null,
"tunnel_type": "masque",
"updated_at": "2025-02-14T13:17:00Z",
"user": {
"email": "alice@example.org",
"id": "30323c1f-318d-4ec9-92c7-5a8c4d25c4fc",
"name": "Alice"
}
},
{
"created_at": "2025-02-15T10:20:00Z",
"deleted_at": null,
"device": {
"client_version": "1.0.1",
"id": "43bb1515-8902-50b5-aa01-a88686192467",
"name": "Bob's Laptop"
},
"id": "22eedc7a-4a1d-5417-c5b3-f73a983c277b",
"key": "V/RSP61StXgfmLHJG5umHEonHfvxtz57LDIs6PziXr11Stegm56nhrRBvFK7DP1ZsLzUm0GVg6jC1cxZS4h5FFGFJiju7kGbrgNsCNCT77juw0IRYlS0QpjgLR==",
"key_type": "secp256r1",
"last_seen_at": "2025-02-15T10:25:00Z",
"revoked_at": null,
"tunnel_type": "masque",
"updated_at": "2025-02-15T10:25:00Z",
"user": {
"email": "bob@example.com",
"id": "41434d2a-429e-5fd0-a3d8-6b9d5e36d5ad",
"name": "Bob"
}
}
],
"result_info": {
"count": 2,
"cursor": "ais86dftf.asdf7ba8",
"per_page": 10,
"total_count": null
},
"success": true
}Returns Examples
{
"errors": [],
"messages": [],
"result": [
{
"created_at": "2025-02-14T13:17:00Z",
"deleted_at": null,
"device": {
"client_version": "1.0.0",
"id": "32aa0404-78f1-49a4-99e0-97f575081356",
"name": "My Device"
},
"id": "11ffb86f-3f0c-4306-b4a2-e62f872b166a",
"key": "U+QTP50RsWfeLGHF4tlGDnmGeuwtsz46KCHr5OyhWq00Rsdfl45mgnQAuEJ6CO0YrkyTl9FUf5iB0bwYR3g4EEFEHhtu6jFaqfMrBMBSz6itv9HQXkaR9OieKQ==",
"key_type": "secp256r1",
"last_seen_at": "2025-02-14T13:17:00Z",
"revoked_at": null,
"tunnel_type": "masque",
"updated_at": "2025-02-14T13:17:00Z",
"user": {
"email": "alice@example.org",
"id": "30323c1f-318d-4ec9-92c7-5a8c4d25c4fc",
"name": "Alice"
}
},
{
"created_at": "2025-02-15T10:20:00Z",
"deleted_at": null,
"device": {
"client_version": "1.0.1",
"id": "43bb1515-8902-50b5-aa01-a88686192467",
"name": "Bob's Laptop"
},
"id": "22eedc7a-4a1d-5417-c5b3-f73a983c277b",
"key": "V/RSP61StXgfmLHJG5umHEonHfvxtz57LDIs6PziXr11Stegm56nhrRBvFK7DP1ZsLzUm0GVg6jC1cxZS4h5FFGFJiju7kGbrgNsCNCT77juw0IRYlS0QpjgLR==",
"key_type": "secp256r1",
"last_seen_at": "2025-02-15T10:25:00Z",
"revoked_at": null,
"tunnel_type": "masque",
"updated_at": "2025-02-15T10:25:00Z",
"user": {
"email": "bob@example.com",
"id": "41434d2a-429e-5fd0-a3d8-6b9d5e36d5ad",
"name": "Bob"
}
}
],
"result_info": {
"count": 2,
"cursor": "ais86dftf.asdf7ba8",
"per_page": 10,
"total_count": null
},
"success": true
}