Class ApiTokenResetResponse
Response returned when an API token is reset. Includes the new full token value, which is only returned once at reset time.
public sealed record ApiTokenResetResponse : IEquatable<ApiTokenResetResponse>
- Inheritance
-
ApiTokenResetResponse
- Implements
Properties
CreatedBy
Gets the name of the user or token that created this API token.
[JsonPropertyName("created_by")]
[JsonPropertyOrder(4)]
public string? CreatedBy { get; set; }
Property Value
ExpiresAt
Gets the date and time when the API token expires, or null if it does not expire.
[JsonPropertyName("expires_at")]
[JsonPropertyOrder(5)]
public DateTimeOffset? ExpiresAt { get; set; }
Property Value
Id
Gets the API token identifier.
[JsonPropertyName("id")]
[JsonPropertyOrder(1)]
[JsonRequired]
public long Id { get; set; }
Property Value
Last4Digits
Gets the last 4 characters of the new token.
[JsonPropertyName("last_4_digits")]
[JsonPropertyOrder(3)]
public string Last4Digits { get; set; }
Property Value
Name
Gets the API token display name.
[JsonPropertyName("name")]
[JsonPropertyOrder(2)]
public string Name { get; set; }
Property Value
Resources
Gets the resource accesses granted to this API token.
[JsonPropertyName("resources")]
[JsonPropertyOrder(6)]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<ApiTokenAccess> Resources { get; }
Property Value
Token
Gets the new full token value. Only returned at reset time — store it securely.
[JsonPropertyName("token")]
[JsonPropertyOrder(7)]
public string Token { get; set; }