OpenAPI Specification for Crymbo REST API (1.0.0)

Download OpenAPI specification:Download

Describes: Endpoints, Request bodies, headers and responses with descriptions

Auth

This section supply the way to authenticate to Crymbo API Require api key and api secret

generate-JWT

Generate JWT Token, required api_key + api_secret The JWT token is valid for 30 minutes.
If expired, you will need to generate a new one each request to the api required an Authorization token in the header.
Please contact support@crymbo.com to request API KEY and API Secret

Security
Request
Request Body schema: application/json
required
api_key
string
Value: "<string>"
api_secret
string
Value: "<string>"
username
string
Value: "<string>"
Responses
200

OK

400

Unauthorized

post/jwt/generate
Request samples
application/json
{
  • "api_key": "<string>",
  • "api_secret": "<string>",
  • "username": "<string>"
}
Response samples
application/json
{
  • "iss": "<string>",
  • "iat": 543823,
  • "exp": 113987,
  • "type": "Bearer",
  • "token": "<token>"
}

Validate-JWT-token

Validate the token

SecurityAuthorization
Request
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
Responses
200

Success

401

Unauthorized

403

Forbidden

500

Internal Server Error

post/jwt/validate
Response samples
application/json
{
  • "message": "Valid JWT Token",
  • "valid": true
}