Mint Client Credentials
Client Credential Credential Grant via Butlr API
Last updated
Client Credential Credential Grant via Butlr API
Last updated
.
The client credentials grant type is ideal when an application needs to authenticate itself to access its own resources or perform operations that are not user-specific. Commonly used in server-to-server interactions, this method allows the application to act autonomously by obtaining an access token using only its client ID and secret, without involving any end-user.
The Auth0 M2M Client Service manages Machine-to-Machine (M2M) clients. All endpoints require a valid JWT token with a client_id
.
All requests must include a valid JWT token in the Authorization
header:
Creates a new Machine-to-Machine client in Auth0.
Request:
Request Body:
Behavior:
The client is automatically associated with the client_id
from your JWT token.
It is authorized for the Butlr API (https://butlrauth/
) with the following scopes:
read:spaces
, write:spaces
, delete:spaces
read:rooms
, write:rooms
, delete:rooms
read:sensors
, write:sensors
, delete:sensors
read:hives
, write:hives
, delete:hives
Response (201 Created):
Example cURL Command:
Retrieves all M2M clients.
Request:
Response (200 OK):
Example cURL Command:
Retrieves a specific M2M client by ID.
Request:
Response (200 OK):
Example cURL Command:
Deletes a specific M2M client.
Request:
Response (204 No Content)
Example cURL Command:
400 Bad Request
Occurs when the request is invalid.
Example Response:
401 Unauthorized
Occurs when the JWT token is missing, invalid, or missing a client_id
.
Example Responses:
OR
404 Not Found
Occurs when the requested client is not found.
Example Response:
500 Internal Server Error
Occurs when an unexpected error happens.
Example Response:
INVALID_REQUEST
The request is missing required fields or contains invalid data
CLIENT_NOT_FOUND
The requested client does not exist
CLIENT_CREATE_FAILED
Failed to create the client
CLIENT_GRANT_CREATE_FAILED
Failed to authorize client for API access
CLIENT_UPDATE_FAILED
Failed to update the client
CLIENT_DELETE_FAILED
Failed to delete the client