You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/mailtrap-cli/references/accounts.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ Create a new API token.
58
58
|------|------|----------|-------------|
59
59
|`--name`| string | Yes | Token name |
60
60
|`--permissions`| string | Yes | Permissions JSON array, e.g. `'[{"resource_type":"account","resource_id":123,"access_level":100}]'`|
61
+
|`--expires-at`| string | No | Token expiration as an ISO 8601 date-time, e.g. `2027-06-01T00:00:00Z`. Pass `never` for a token that never expires. Omit for the server default (a 1-year default is being rolled out) |
61
62
62
63
**Note:** The token value is shown only once in the response. Store it securely.
63
64
@@ -80,6 +81,7 @@ Reset (regenerate) an API token.
80
81
| Flag | Type | Required | Description |
81
82
|------|------|----------|-------------|
82
83
|`--id`| string | Yes | Token ID |
84
+
|`--expires-at`| string | No | New token expiration as an ISO 8601 date-time, e.g. `2027-06-01T00:00:00Z`. Pass `never` for a token that never expires. Omit for the server default (a 1-year default is being rolled out) |
83
85
84
86
**Note:** The new token value is shown only once. The old token stops working immediately.
0 commit comments