B2B Saas Authentication

/

API reference

/

M2M Authentication

/

M2M Client

/

Delete M2M client

Delete M2M Client

DELETEhttps://test.stytch.com/v1/m2m/clients/{client_id}

Deletes the M2M Client.

Important: Deleting a M2M Client will not invalidate any existing JWTs issued to the client, only prevent it from receiving new ones. To protect more-sensitive routes, pass a lower max_token_age value when authenticating the token .


Path parameters


client_id*string

Response fields


status_codeint

request_idstring

client_idstring
curl --request DELETE \
	--url https://test.stytch.com/v1/m2m/clients/m2m-client-test-d731954d-dab3-4a2b-bdee-07f3ad1be885 \
	-u 'PROJECT_ID:SECRET'

RESPONSE

200
{
    "status_code": 200,
    "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
    "client_id":"m2m-client-test-d731954d-dab3-4a2b-bdee-07f3ad1be885",
}

Common Error Types