Skip to content
English
  • There are no suggestions because the search field is empty.

Get service account access token

GET
/api/v1/service-accounts/{serviceName}/token

       
curl --request GET \
--url https://localhost:8080/api/v1/service-accounts/example/token

Issue an access token for the named service account, authenticated via the shared API secret

serviceName
required
string

Service account name

Token response

Media type application/json
object
access_token
string
token_type
string
Example

          
{
"token_type" : " Bearer "
}

Service name is required

Media type application/json
object
error
string
error_description
string
Example

          
{
"error" : " Unauthorized " ,
"error_description" : " Invalid token "
}

Unauthorized - Missing, malformed, or invalid API secret

Media type application/json
object
error
string
error_description
string
Example

          
{
"error" : " Unauthorized " ,
"error_description" : " Invalid token "
}

Service account is not active

Media type application/json
object
error
string
error_description
string
Example

          
{
"error" : " Unauthorized " ,
"error_description" : " Invalid token "
}

Service account not found

Media type application/json
object
error
string
error_description
string
Example

          
{
"error" : " Unauthorized " ,
"error_description" : " Invalid token "
}

Internal server error or API secret middleware misconfiguration

Media type application/json
object
error
string
error_description
string
Example

          
{
"error" : " Unauthorized " ,
"error_description" : " Invalid token "
}