Project Grant By ID
GEThttps://$CUSTOM-DOMAIN/management/v1/projects/:projectId/grants/:grantId
Returns a project grant. A project grant is when the organization grants its project to another organization.
Request​
Path Parameters
projectId stringrequired
grantId stringrequired
Header Parameters
x-zitadel-orgid string
The default is always the organization of the requesting user. If you like to change/get objects of another organization include the header. Make sure the requesting user has permission to access the requested data.
Responses​
- 200
- default
A successful response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
projectGrant
object
{
"projectGrant": {
"grantId": "69629023906488334",
"grantedOrgId": "69629023906488334",
"grantedOrgName": "Some Organization",
"grantedRoleKeys": [
"role.super.man"
],
"state": "PROJECT_GRANT_STATE_UNSPECIFIED",
"projectId": "69629023906488334",
"projectName": "ZITADEL",
"projectOwnerId": "69629023906488334",
"projectOwnerName": "ZITADEL",
"details": {
"sequence": "2",
"creationDate": "2025-03-25T10:28:47.770Z",
"changeDate": "2025-03-25T10:28:47.770Z",
"resourceOwner": "69629023906488334"
}
}
}
- Schema
- Example (from schema)
Schema
projectGrant
object
{
"projectGrant": {
"grantId": "69629023906488334",
"grantedOrgId": "69629023906488334",
"grantedOrgName": "Some Organization",
"grantedRoleKeys": [
"role.super.man"
],
"state": "PROJECT_GRANT_STATE_UNSPECIFIED",
"projectId": "69629023906488334",
"projectName": "ZITADEL",
"projectOwnerId": "69629023906488334",
"projectOwnerName": "ZITADEL",
"details": {
"sequence": "2",
"creationDate": "2025-03-25T10:28:47.771Z",
"changeDate": "2025-03-25T10:28:47.771Z",
"resourceOwner": "69629023906488334"
}
}
}
- Schema
- Example (from schema)
Schema
projectGrant
object
{
"projectGrant": {
"grantId": "69629023906488334",
"grantedOrgId": "69629023906488334",
"grantedOrgName": "Some Organization",
"grantedRoleKeys": [
"role.super.man"
],
"state": "PROJECT_GRANT_STATE_UNSPECIFIED",
"projectId": "69629023906488334",
"projectName": "ZITADEL",
"projectOwnerId": "69629023906488334",
"projectOwnerName": "ZITADEL",
"details": {
"sequence": "2",
"creationDate": "2025-03-25T10:28:47.771Z",
"changeDate": "2025-03-25T10:28:47.771Z",
"resourceOwner": "69629023906488334"
}
}
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://$CUSTOM-DOMAIN/management/v1/projects/:projectId/grants/:grantId' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear