For AI agents: a documentation index is available at the root level at /llms.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
This page is for Data API, version v2 (default).
For other versions, use one of these documentation indexes:
- v2 (default): https://developers.webflow.com/data/v2.0.0/llms.txt
- v2 Beta: https://developers.webflow.com/data/v2.0.0-beta/llms.txt
- v1: https://developers.webflow.com/data/v1.0.0/llms.txt
Grant a workspace member access to a site, named by email or memberId.
This creates access — it does not change an existing grant. A member who already has access to this site is refused with member_already_has_access; use PATCH to change their Site Role instead.
Enterprise Only
This endpoint requires an Enterprise workspace.
Required scope | site_access:write
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
site_idstringRequiredformat: "objectid"
Unique identifier for a Site
Request
This endpoint expects an object.
siteRoleenumRequired
The Site Role to grant
emailstringOptional
Email address of the Workspace Member to grant access to. Provide either email or memberId, not both.
memberIdstringOptionalformat: "objectid"
ID of the Workspace Member to grant access to. Provide either email or memberId, not both.
siteRoleIdstringOptionalformat: "objectid"
ID of the custom Site Role to grant. Required when siteRole is custom, and rejected with any other siteRole. Rejected if the id doesn’t name a custom Site Role belonging to this workspace.