Skip to main content

Base URL

Markoub.ma’s API is built on REST principles and is served over HTTPS. To ensure data privacy, unencrypted HTTP is not supported. The Base URL for all API endpoints is:
Terminal
# Development
https://b2b-api.markoub.dev

Authentication

Authentication to Markoub.ma’s API is performed via the Authorization header with a Bearer token. To authenticate, you need to include the Authorization header with the word Bearer followed by your API key in your requests like so:
Terminal
Authorization: Bearer <Your-Token>
You will receive this token from the dev team at Markoub.ma, if your token gets leaked and you want to reset it, please contact us at [email protected]

Response Codes

The API returns standard HTTP response codes to indicate the success or failure of an API request. Here are a few examples:
CodeDescription
200The request was successful.
400The request was invalid or cannot be served.
401The request requires user authentication.
403The server understood the request, but refuses to authorize it.
404The requested resource could not be found.
429Too many requests.
500The server encountered an unexpected condition which prevented it from fulfilling the request.