Substy Developers
Account and agency

Get agency access

Read the connected account's role, permissions and creator scope for the requested agency. The agency must match the approved MCP agency.

GET/v1/agencies/{agencyId}/access

Read the connected account's role, permissions and creator scope for the requested agency. The agency must match the approved MCP agency.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

agencyId*string
Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/agencies/string/access" \  -H "Authorization: Bearer YOUR_API_KEY"
{  "data": {    "agencyId": "string",    "userId": "string",    "isOwner": true,    "role": null,    "permissions": [      "string"    ],    "dataVisibility": "SELF",    "creatorScope": "ALL",    "accessibleCreatorIds": [      "string"    ]  },  "meta": {    "requestId": "string"  }}