generated: '2026-07-11' method: derived source: openapi/when-i-work-openapi.yml summary: types: - http schemes: - name: W-Token type: http scheme: bearer bearerFormat: JSON Web Token description: |- Authentication with When I Work is based on a token model using [JSON Web Tokens](https://jwt.io/). First, you authenticate using a private developer key and the username and password of a When I Work user. Your developer key can be used like the following in the headers. ``` curl -X POST \ https://api.login.wheniwork.com/login \ -H 'W-Key: ' \ -H 'content-type: ap sources: - openapi/when-i-work-openapi.yml