Responses
-
200 application/json
The token refreshed successfully and was returned in the body of the response.
-
401 application/json
The authentication token is invalid or expired. (code:
root.unauthorized
) -
501 application/json
The administrator needs to configure the authentication cluster. (code:
authc.no_authentication_cluster
) -
502 application/json
The authentication cluster failed to process the request. The response body contains details about the error. (code:
authc.authentication_cluster_error
)
POST
/users/auth/_refresh
curl \
--request POST 'https://{{hostname}}/api/v1/users/auth/_refresh' \
--user "username:password"
Response examples (200)
{
"token": "string",
"session_expiration_time": "2025-05-04T09:42:00Z"
}
Response examples (401)
# Headers
x-cloud-error-codes: root.unauthorized
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (501)
# Headers
x-cloud-error-codes: authc.no_authentication_cluster
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (502)
# Headers
x-cloud-error-codes: authc.authentication_cluster_error
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}