Tokens
This endpoint allows you to perform actions on a specific Token of your Integration.
Token Scopes
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200
OK
application/json
Responseobject
get/api/v1/tokens
GET /api/v1/tokens HTTP/1.1
Host: integration.goodaccess.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
OK
[
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "My Integration Token",
"expires_at": "2025-12-31 23:59:59",
"token": "a1b2c3d4-********-********-********-********-********",
"last_used_at": "2024-08-15 10:30:00",
"allowed_ips": [
"192.168.1.1"
],
"allowed_scopes": [
"systems.read"
]
}
]Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
tokenIdstringRequired
UUID of the token
Responses
200
OK
application/json
Responseobject
404
Not Found
application/json
get/api/v1/token/{tokenId}
GET /api/v1/token/{tokenId} HTTP/1.1
Host: integration.goodaccess.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "My Integration Token",
"expires_at": "2025-12-31 23:59:59",
"token": "a1b2c3d4-********-********-********-********-********",
"last_used_at": "2024-08-15 10:30:00",
"allowed_ips": [
"192.168.1.1"
],
"allowed_scopes": [
"systems.read"
]
}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringOptional
Name of the token
expires_atstringOptional
Expiration date of the token (format 'Y-m-d H:i:s')
allowed_ipsstring[]Optional
List of IP addresses allowed to use this token. If empty, all IPs are allowed.
Responses
200
OK
application/json
objectOptional
400
Validation Error
application/json
post/api/v1/token
POST /api/v1/token HTTP/1.1
Host: integration.goodaccess.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 1261
{
"name": "My Integration Token",
"expires_at": "2025-12-31 23:59:59",
"allowed_ips": [
"192.168.1.1"
],
"allowed_scopes": [
"token.create",
"token.read",
"token.delete",
"token.read-all",
"members.disconnect",
"device-posture-check-logs.read",
"threat-blocker-logs.read",
"admin-logs.read",
"devices.read-all",
"devices.delete",
"devices.read",
"group-access-card-relation.delete",
"group-access-card-relation.add",
"member-group-relation.delete",
"member-group-relation.add",
"system-group-access-card-relation.delete",
"system-group-access-card-relation.add",
"system-system-group-relation.delete",
"system-system-group-relation.add",
"system-ac-relation.delete",
"system-ac-relation.add",
"member-ac-relation.delete",
"member-ac-relation.add",
"groups.read-all",
"system-groups.read-all",
"access-card.read-all",
"gateway.read-all",
"system.read-all",
"gateway-log.read",
"members.read-all",
"system-groups.delete",
"system-groups.update",
"system-groups.read",
"system-groups.create",
"groups.delete",
"groups.update",
"groups.read",
"groups.create",
"systems.delete",
"systems.update",
"systems.read",
"systems.create",
"system-logs.read",
"access-cards.delete",
"access-cards.update",
"access-cards.read",
"access-cards.create",
"gateways.read",
"members.delete",
"members.update",
"members.read",
"members.create"
]
}{
"message": "Token has been successfully created",
"created_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"token": "a1b2c3d4-e5f67890-abcd1234-ef567890-abcd1234-ef567890"
}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
tokenIdstringRequired
UUID of the token to revoke
Responses
200
OK
application/json
objectOptional
404
Not Found
application/json
delete/api/v1/token/{tokenId}
DELETE /api/v1/token/{tokenId} HTTP/1.1
Host: integration.goodaccess.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"message": "Token has been successfully revoked"
}Last updated
Was this helpful?