Tokens and Permissions
Token detail
Returns all properties of a token, including the project it belongs to (owner). You can obtain the token ID, for example, using the Token verification call.
Requesting the token used for authorization is always allowed; requesting any other token requires the canManageTokens permission.
Available both with and without a development branch prefix; the returned token properties and permission rules are the same in either case.
get/v2/storage/branch/{branchId}/tokens/{id}
Request
- Base URLhttps://connection.keboola.com
- Auth
- API key in header X-StorageApi-Token
- or API key in header X-KBC-ManageApiToken
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idinteger required
Token ID.
branchIdstring required
Response
Token detail response.
Example response
{
"id": "484",
"created": "2017-02-13T12:01:05+0100",
"refreshed": "2017-02-13T12:01:05+0100",
"description": "my-new-token",
"uri": "https://connection.keboola.com/v2/storage/tokens/484",
"dailyCapacity": 5,
"token": "75-12d4bfa4995694a1c956e7bb1eea0df5cc53acdb",
"creatorToken": {
"id": 1,
"description": "dev@keboola.com"
},
"componentAccess": [
"keboola.ex-db-mysql"
],
"bucketPermissions": {
"in.c-main": "read"
},
"owner": {
"id": 58,
"name": "Buckets 5",
"type": "production",
"region": "us-east-1",
"created": "2017-02-13T12:01:05+0100",
"dataSizeBytes": 112128,
"rowsCount": 1036,
"defaultBackend": "snowflake",
"hasTryModeOn": "0",
"dataRetentionTimeInDays": 7,
"assignedBackends": [
"snowflake"
],
"usersCount": 2,
"fileStorageProvider": "aws",
"payAsYouGo": {
"purchasedCredits": 123
}
},
"organization": {
"id": "123"
},
"admin": {
"name": "John Doe",
"id": 124,
"role": "admin"
},
"adminOwner": {
"id": 17,
"name": "Username",
"email": "username@keboola.com"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.