Create a grant preview
POST
/v1/api-keys/grant-previewscurl -X POST 'https://api.embodiflow.io/v1/api-keys/grant-previews' \
-H "Authorization: Bearer $EMBODIFLOW_PAT" \
-H 'Content-Type: application/json' \
-d '{
"scopeAllProjects": true,
"projectIds": [
"00000000-0000-0000-0000-000000000000"
]
}'Authorization
Send a personal access token with every request.
- Authorization: Bearer PAT
Request body
Content-Typeapplication/json
- scopeAllProjectsbooleanrequired
- projectIdsarray<string (uuid)>
Required (non-empty) when scopeAllProjects is false.
Responses
Success
- dataobjectrequired
- permissionsarray<string>required
- metaobjectrequired
- requestIdstringrequired
Response example
{
"data": {
"permissions": "project:read"
},
"meta": {
"requestId": "string"
}
}Servershttps://api.embodiflow.io/v1