Skip to content
Docs
GitHub

Grant

Preview

Manage organizations, members, end users, invitations and connected identities.

Public APIEverruns Cloud and self-hosted Platform

POST/v1/resources/{id}/grants

See authentication for credentials and permissions.

id
required
string format: uuid

Resource ID

Media typeapplication/json

Explicit bounded use grant. It does not confer management permission or permission to reshare.

object
constraints
One of:
One of:
object
permissions
required
object
key
additional properties
string
provider
required
string
Allowed values: github
repositories
required
Array<string>
consumer_id

Consumer agent, session, or virtual-user ID; omit for organization scope.

string | null
consumer_scope
required

Consumer scope; organization grants explicitly opt eligible service agents in.

string
Allowed values: session agent virtual_user organization
expires_at

Absolute grant expiry in UTC; omit for a grant that lasts until revoked.

string | null format: date-time
usage
required

Invocation identity that must match at every use.

string
Allowed values: user service

Responses

201Access granted

Access granted

Media typeapplication/json

Identifier of the newly declared binding or explicit access grant.

object
id
required

Stable identifier used by subsequent metadata and management requests.

string format: uuid

Example generated

{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}