application/json
.
Authentication
There are three ways to authenticate yourself with the WireMock Cloud API:1. API Token authentication (preferred)
Pass anAuthorization
header of the form Token <api-key>
:
request
2. Basic authentication (legacy)
Pass anAuthorization
header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string
username:api-key
.
request
<encoded-value>
as the base64-encoded string
username:password
rather than username:api-key
- at present we cannot fix this.
3. OAuth 2.0 Device Authorization Flow
An enterprise customer wishing to use OAuth 2.0 Access Tokens to authenticate to the WireMock Cloud API, e.g. from their own CLI, and happy to do more integration work, may request access by contacting the WireMock team and then implement the device authorization flow. They can then pass anAuthorization
header of the form {token_response.token_type} {token_response.access_token}
:
request