Skip to main content
DELETE
https://api-dev.weir.ai/
/
org
/
client
/
:clientId
curl -X DELETE 'https://api.weir.ai/org/client/cli_123456789' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'x-source: console'
{
  "message": "Client deleted successfully",
  "status": "success"
}

Delete API Client

Permanently delete an API client and revoke its credentials.
Caution: All API requests using this client’s credentials will immediately fail after deletion.
curl -X DELETE 'https://api.weir.ai/org/client/cli_123456789' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'x-source: console'
{
  "message": "Client deleted successfully",
  "status": "success"
}

Path Parameters

clientId
string
required
Unique identifier of the client to delete.

Usage Examples

const deleteClient = async (clientId, accessToken) => {
  const response = await fetch(`https://api.weir.ai/org/client/${clientId}`, {
    method: 'DELETE',
    headers: {
      'Authorization': `Bearer ${accessToken}`,
      'x-source': 'console'
    }
  });
  if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
  return await response.json();
};