API Reference
Authentication and reference

Authenticate (server-to-server)

POST/api/v1/auth/authenticateServer
Base URL: https://bloquo.mimicr.dev · provider: https://api.bloquo.io

Obtains a JWT access token using API client credentials (clientId + clientSecret). Use this for server-to-server integrations where there is no human user involved.

The returned accessToken must be included in the Authorization: Bearer <token> header on all subsequent requests.

Tokens expire after the duration indicated in expiresIn. Re-authenticate when the token expires - server-to-server tokens do not have a refresh token.

Authorization

Public route, no token.

Body

application/json
clientIdstringrequired

API client ID provided by Bloquo.

Example: "my-app-client-id"
clientSecretstringrequired

API client secret provided by Bloquo.

Example: "my-app-client-secret"

Responses

200Authentication successful.
statusboolean
Example: true
resultobject
Show child attributes
accessTokenstring

JWT access token. Include in Authorization, Bearer <token> on all subsequent requests.

Example: "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
expiresIninteger

Token lifetime in seconds.

Example: 3600
tokenTypestring
Example: "Bearer"
messagestring | null
401Invalid client credentials.
statusboolean
resultany | null
messagestring