Skip to main content
POST
Create an organization policy api token

Authorizations

Authorization
string
header
required

JWT tokens should be used with OIDC account (human to machine). JWT tokens used by the Qovery console to communicate with the API have a TTL. Curl Example ' curl https://console.qovery.com/organization -H "Authorization: Bearer $qovery_token" '

Path Parameters

organizationId
string<uuid>
required

Organization ID

Body

application/json
name
string
required
opa_policy
string
required

Open Policy Agent (rego) rule definitions, without a package declaration: Qovery prepends a per-token package so that one token's rules cannot authorize another's. The policy must define an allow rule, and the request is denied unless it evaluates to true.

description
string
expires_at
string<date-time> | null

Response

Organization policy api token created

id
string<uuid>
required
read-only
created_at
string<date-time>
required
read-only
updated_at
string<date-time>
read-only
name
string
description
string
token
string

the generated token to send in 'Authorization' header prefixed by 'Token '. It is returned only here and cannot be retrieved afterwards.

creator_name
string | null
user_sub
string
expires_at
string<date-time> | null