Mint Client Credentials
Client Credential Credential Grant via Butlr API
OAuth 2.0 Client Credentials Grant Type.
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.
Auth0 M2M Client Service
Overview
The Auth0 M2M Client Service manages Machine-to-Machine (M2M) clients. All endpoints require a valid JWT token with a client_id.
Authentication
All requests must include a valid JWT token in the Authorization header:
Authorization: Bearer your-jwt-tokenEndpoints
Create M2M Client
Creates a new Machine-to-Machine client in Auth0.
Request:
POST /api/v1/client
Content-Type: application/json
Authorization: Bearer your-jwt-tokenRequest Body:
Behavior:
The client is automatically associated with the
client_idfrom your JWT token.It is authorized for the Butlr API (
https://butlrauth/) with the following scopes:read:spaces,write:spaces,delete:spacesread:rooms,write:rooms,delete:roomsread:sensors,write:sensors,delete:sensorsread:hives,write:hives,delete:hives
Response (201 Created):
Example cURL Command:
List M2M Clients
Retrieves all M2M clients.
Request:
Response (200 OK):
Example cURL Command:
Get M2M Client
Retrieves a specific M2M client by ID.
Request:
Response (200 OK):
Example cURL Command:
Delete M2M Client
Deletes a specific M2M client.
Request:
Response (204 No Content)
Example cURL Command:
Error Responses
400 Bad Request
400 Bad RequestOccurs when the request is invalid.
Example Response:
401 Unauthorized
401 UnauthorizedOccurs when the JWT token is missing, invalid, or missing a client_id.
Example Responses:
OR
404 Not Found
404 Not FoundOccurs when the requested client is not found.
Example Response:
500 Internal Server Error
500 Internal Server ErrorOccurs when an unexpected error happens.
Example Response:
Error Codes
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
Last updated