Skip to main content
GET
/
access-key
/
{accessKey}
/
permissions
curl -X GET "https://config.gms.ensync.cloud/v1/access-key/ensk_prod_xxxxx/permissions" \
  -H "X-API-KEY: your-api-key"
{
  "id": 1,
  "name": "Production Key",
  "key": "ensk_prod_xxxxx",
  "type": "SERVICE",
  "permissions": {
    "send": ["order/*", "inventory/*"],
    "receive": ["payment/*"],
    "resources": {}
  },
  "createdAt": "2024-01-15T10:30:00Z"
}

Path Parameters

accessKey
string
required
The access key to retrieve permissions for

Response

id
integer
Access key ID
name
string
Access key name
key
string
The access key value
type
string
Key type: ACCOUNT or SERVICE
permissions
object
Access key permissions
createdAt
string
Creation timestamp
curl -X GET "https://config.gms.ensync.cloud/v1/access-key/ensk_prod_xxxxx/permissions" \
  -H "X-API-KEY: your-api-key"
{
  "id": 1,
  "name": "Production Key",
  "key": "ensk_prod_xxxxx",
  "type": "SERVICE",
  "permissions": {
    "send": ["order/*", "inventory/*"],
    "receive": ["payment/*"],
    "resources": {}
  },
  "createdAt": "2024-01-15T10:30:00Z"
}