List M2M clients
GET
/oauth/clients
const url = 'https://api.example.com/oauth/clients?status=active';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://api.example.com/oauth/clients?status=active' \ --header 'Authorization: Bearer <token>'Retrieve all M2M OAuth clients. Admin only — requires a Cognito ID token with Admin group membership (not an M2M client-credentials token).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” status
string
Filter by client status.
Responses
Section titled “ Responses ”Successfully retrieved client list.
Media type application/json
object
clients
Array<object>
object
clientId
string
clientName
string
description
string
scopes
Array<string>
status
string
createdAt
string format: date-time
createdBy
object
userId
string
userName
string
expiresAt
string format: date-time
lastUsedAt
string format: date-time
usageCount
integer
revokedAt
string format: date-time
revokedBy
object
userId
string
userName
string
channel
Web-channel slug this client is bound to, if any. Absent/null means unbound.
string
count
integer
Example
{ "clients": [ { "scopes": [ "products.read" ], "status": "active" } ]}Authentication required or failed.
Media type application/json
object
error
Machine-readable code. Best-effort — the generic 500 path carries none.
string
message
required
string
requestId
Unique request ID for tracing.
string
details
object
key
additional properties
any
Example
{ "error": "UNAUTHORIZED", "message": "Valid authentication token required."}Insufficient permissions (missing scope or Admin role).
Media type application/json
object
error
Machine-readable code. Best-effort — the generic 500 path carries none.
string
message
required
string
requestId
Unique request ID for tracing.
string
details
object
key
additional properties
any
Example
{ "error": "FORBIDDEN", "message": "Insufficient scope for this operation."}