Get a Valkey instance's credentials

Get the instance's auth_token and the URIs to connect with. You can get the token and URIs at any time while the instance exists.

GET https://{availability_zone}.betterstackcloud.com/v1/valkey/{id}/credentials
id string required

The ID of the Valkey instance.

Authorization string required

Bearer $TOKEN

200 OK
{
  "user": "jane@example.com",
  "auth_token": "abcdef123456",
  "uri": "example",
  "tls_uri": "example",
  "ca_certificate": "example",
  "rotating_until": "2026-07-01T12:00:00.000Z"
}

Returns the credentials as one object.

user string

The username, always default.

auth_token string

The AUTH token.

uri string

A valkey:// URI for your private networks, with the auth_token in it.

tls_uri string or null

A valkeys:// URI for the public TLS endpoint, with the auth_token in it, or null when public_access is off.

ca_certificate string or null

The CA certificate to verify the public TLS endpoint with, in PEM format, or null when public_access is off.

rotating_until datetime or null

Until when the previous token still works after a rotation, or null when no rotation is in progress. In ISO 8601 format, such as 2026-07-01T12:00:00Z.