APITokenCreate is the input for creating a new API token.
| 17 | |
| 18 | // APITokenCreate is the input for creating a new API token. |
| 19 | type APITokenCreate struct { |
| 20 | Name string `json:"name"` |
| 21 | Scopes string `json:"scopes,omitempty"` |
| 22 | WorkspaceID string `json:"workspace_id,omitempty"` // optional scope |
| 23 | ExpiresIn int `json:"expires_in,omitempty"` // expiry in days (0 = use platform default) |
| 24 | } |
| 25 | |
| 26 | // APITokenWithSecret is returned only on creation and includes the |
| 27 | // plaintext token. The token is never stored and cannot be retrieved again. |
nothing calls this directly
no outgoing calls
no test coverage detected