Get all user tokens – Management API – MediaKind
Get all user tokens
Get all non-expired API tokens issued to the current user.
Requires authentication; no additional RBAC permissions required.
Authentication
Authorization Bearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Response
200 OK
kind
stringRequired
The kind of record.value
list of objectsUserTokenSchema Required
Token list.metadata
objectUserTokenMetadataSchema Required
Token metadata.JWT
stringOptional
Generated token. We do not store this token, so you will not be able to see it again. Please copy it and keep it securely.id
stringRequired format: uuid
ID of token.type
enumRequired
Token type.
Allowed values: login, full-access, restricted, ephemeralspec
objectUserTokenSpecSchema Required
Token spec.description
stringOptional
Description of the token. Max 128 characters.- expires
stringRequired format: date-time
Date token expires. - issued
stringRequired format: date-time
Date token was issued. - lastUsed
string or nullRequired format: date
Date token was last used on the MK.IO api. - organizationId
string or nullOptional format: uuid
ID of the organization that this token allows access to. - permissions
map from strings to anyOptional
The RBAC capabilities assigned to the token when type is 'restricted'. - revoked
string or nullRequired format: date-time
Date token was revoked, or null if not revoked. - revokedBy
stringOptional
Email of user who revoked this token. - user
stringRequired
Email of user the token was issued for.
- expires
Errors
400 Bad Request
error
objectErrorDetail Required
Pertinent information about the errorcode
stringRequired
The error code.- detail
stringRequired
The error message. - extraDetail
map from strings to anyOptional
Extra information regarding this error. - ref
stringRequired
A reference to the request that caused the error. - status
integerRequired
The HTTP status code
- detail
401 Unauthorized
- error
objectErrorDetail Required
Pertinent information about the error
403 Forbidden
- error
objectErrorDetail Required
Pertinent information about the error
404 Not Found
- error
objectErrorDetail Required
Pertinent information about the error
429 Too Many Requests
- error
objectErrorDetail Required
Pertinent information about the error
500 Internal Server Error
- error
objectErrorDetail Required
Pertinent information about the error