Gets information about an existing M2M Client.
Get M2M Client
GET
https://test.stytch.com/v1/m2m/clients/{client_id}Path parameters
client_id* string
Response fields
status_code int
request_id string
m2m_client object
const stytch = require('stytch');
const client = new stytch.Client({
project_id: 'PROJECT_ID',
secret: 'SECRET',
});
const params = {
client_id: "m2m-client-test-d731954d-dab3-4a2b-bdee-07f3ad1be885",
};
client.m2m.clients.get(params)
.then(resp => { console.log(resp) })
.catch(err => { console.log(err) });
RESPONSE
200
{
"status_code": 200,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"m2m_client": {
"client_id":"m2m-client-test-d731954d-dab3-4a2b-bdee-07f3ad1be885",
"client_name":"Example client name",
"client_description":"Example client description.",
"client_secret_last_four":"DzJj",
"next_client_secret_last_four":null,
"status":"active",
"scopes":["read:users","write:users"],
"trusted_metadata":{}
}
}