API v2 (2.0.0)Guides

Authentication

Every call carries the school API key, created in the dashboard settings, in the Authorization header. The Bearer prefix is optional. It is the same key as API v1.

GET /api/v2/user/email:[email protected]/access
Host: yourschool.cademi.com.br
Authorization: Bearer 4cc58d97-14c2-406f-a8c5-1ebb8e05696d

The key identifies the school and is valid for the whole school. Deleting it in the dashboard revokes it immediately. Without the header, or with a key that does not exist or was deleted, the answer is HTTP 401:

{ "code": 401, "success": false, "message": " Invalid api key" }