GetToken {{
GetToken
{{.MethodDescriptorProto.Name}} is a call with the method(s) {{$first := true}}{{range .Bindings}}{{if $first}}{{$first = false}}{{else}}, {{end}}{{.HTTPMethod}}{{end}} within the "{{.Service.Name}}" service. It takes in "{{.RequestType.Name}}" and returns a "{{.ResponseType.Name}}". It is used to generate a short lived access token for web access.
{{import "tables.md"}}
POST
/v1/auth/token
curl \
--request POST https://api.brease.run/v1/auth/token \
--header "X-API-KEY: $API_KEY"
Response examples (200)
{
"accessToken": "string",
"refreshToken": "string"
}
Response examples (default)
{
"code": 42,
"message": "string",
"details": [
{
"@type": "string"
}
]
}