Secret Keys
List the instance's secret keys. Revoked keys stay listed for 30 days. Needs instance:read.
instance_id*stringInstance ID
page?integerPage number
limit?integerPage size (default 25, at most 100)
OK
application/json- response
data?array<>The keys
object?stringAlways "list"
pagination?Pagination information
curl -X GET 'https://api.pontive.com/v1/instances/string/secret-keys'{ "data": [ { "created_at": "string", "created_by": { "email": "string", "id": "string", "name": "string" }, "description": "string", "environment": "production", "expires_at": "string", "id": "string", "instance_id": "string", "last_used_at": "string", "leak": { "detected_at": "string", "evidence": { "property1": "string", "property2": "string" }, "source": "github_secret_scanning", "value_preview": "string" }, "name": "string", "object": "string", "preview": "string", "previous_expires_at": "string", "previous_preview": "string", "region": "string", "revoked_at": "string", "role": "admin", "status": "active", "updated_at": "string", "value": "string" } ], "object": "string", "pagination": { "limit": 0, "page": 0, "total": 0, "total_pages": 0 }}Create a secret key for the instance's management API. The answer carries its value once; it is never shown again. Needs instance:secret_keys.manage. An instance holds at most 10 active keys (secret_key_limit_reached); a deleted instance takes none (instance_deleted).
instance_id*stringInstance ID
Create Secret Key Request
application/json- body
Create Secret Key Request
description?stringWhat the key is for (0–500 characters); null or absent for none
expires_at?stringWhen the key stops working; null for never. Must be in the future.
name?stringNames the caller, e.g. billing-worker (1–100 characters) required: true
role?stringThe key's authority on its instance required: true enum: admin,developer,support,viewer
"admin""developer""support""viewer"Created
application/json- response
created_at?stringcreated_by?Who created it
description?stringWhat the key is for
environment?stringThe instance's environment
"production""non_production"expires_at?stringWhen the key stops working; null for never
id?stringThe key's id; safe to log
instance_id?stringThe only instance the key works on
last_used_at?stringUpdated at most once a minute
leak?Set while a leaked value still works
name?stringNames the caller
object?stringAlways "secret_key"
preview?stringThe value, masked
previous_expires_at?stringWhen the rolled-out value stops working
previous_preview?stringThe rolled-out value's preview while it still works
region?stringThe project's region
revoked_at?stringrole?stringThe key's authority on its instance
"admin""developer""support""viewer"status?stringactive, revoked or expired
"active""revoked""expired"updated_at?stringvalue?stringThe full value: on create and roll answers only. It is never shown again.
curl -X POST 'https://api.pontive.com/v1/instances/string/secret-keys' \ -H 'Content-Type: application/json' \ -d '{}'{ "created_at": "string", "created_by": { "email": "string", "id": "string", "name": "string" }, "description": "string", "environment": "production", "expires_at": "string", "id": "string", "instance_id": "string", "last_used_at": "string", "leak": { "detected_at": "string", "evidence": { "property1": "string", "property2": "string" }, "source": "github_secret_scanning", "value_preview": "string" }, "name": "string", "object": "string", "preview": "string", "previous_expires_at": "string", "previous_preview": "string", "region": "string", "revoked_at": "string", "role": "admin", "status": "active", "updated_at": "string", "value": "string"}One of the instance's secret keys. Needs instance:read.
instance_id*stringInstance ID
secret_key_id*stringSecret key ID
OK
application/json- response
created_at?stringcreated_by?Who created it
description?stringWhat the key is for
environment?stringThe instance's environment
"production""non_production"expires_at?stringWhen the key stops working; null for never
id?stringThe key's id; safe to log
instance_id?stringThe only instance the key works on
last_used_at?stringUpdated at most once a minute
leak?Set while a leaked value still works
name?stringNames the caller
object?stringAlways "secret_key"
preview?stringThe value, masked
previous_expires_at?stringWhen the rolled-out value stops working
previous_preview?stringThe rolled-out value's preview while it still works
region?stringThe project's region
revoked_at?stringrole?stringThe key's authority on its instance
"admin""developer""support""viewer"status?stringactive, revoked or expired
"active""revoked""expired"updated_at?stringvalue?stringThe full value: on create and roll answers only. It is never shown again.
curl -X GET 'https://api.pontive.com/v1/instances/string/secret-keys/string'{ "created_at": "string", "created_by": { "email": "string", "id": "string", "name": "string" }, "description": "string", "environment": "production", "expires_at": "string", "id": "string", "instance_id": "string", "last_used_at": "string", "leak": { "detected_at": "string", "evidence": { "property1": "string", "property2": "string" }, "source": "github_secret_scanning", "value_preview": "string" }, "name": "string", "object": "string", "preview": "string", "previous_expires_at": "string", "previous_preview": "string", "region": "string", "revoked_at": "string", "role": "admin", "status": "active", "updated_at": "string", "value": "string"}Change a secret key's name, description or role. A role change takes effect within 30 seconds. Needs instance:secret_keys.manage.
instance_id*stringInstance ID
secret_key_id*stringSecret key ID
Update Secret Key Request
application/json- body
Update Secret Key Request
description?stringA new description; null clears it, and leaving it out keeps it
name?stringA new name (1–100 characters)
role?stringA new role enum: admin,developer,support,viewer
"admin""developer""support""viewer"OK
application/json- response
created_at?stringcreated_by?Who created it
description?stringWhat the key is for
environment?stringThe instance's environment
"production""non_production"expires_at?stringWhen the key stops working; null for never
id?stringThe key's id; safe to log
instance_id?stringThe only instance the key works on
last_used_at?stringUpdated at most once a minute
leak?Set while a leaked value still works
name?stringNames the caller
object?stringAlways "secret_key"
preview?stringThe value, masked
previous_expires_at?stringWhen the rolled-out value stops working
previous_preview?stringThe rolled-out value's preview while it still works
region?stringThe project's region
revoked_at?stringrole?stringThe key's authority on its instance
"admin""developer""support""viewer"status?stringactive, revoked or expired
"active""revoked""expired"updated_at?stringvalue?stringThe full value: on create and roll answers only. It is never shown again.
curl -X PATCH 'https://api.pontive.com/v1/instances/string/secret-keys/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "created_at": "string", "created_by": { "email": "string", "id": "string", "name": "string" }, "description": "string", "environment": "production", "expires_at": "string", "id": "string", "instance_id": "string", "last_used_at": "string", "leak": { "detected_at": "string", "evidence": { "property1": "string", "property2": "string" }, "source": "github_secret_scanning", "value_preview": "string" }, "name": "string", "object": "string", "preview": "string", "previous_expires_at": "string", "previous_preview": "string", "region": "string", "revoked_at": "string", "role": "admin", "status": "active", "updated_at": "string", "value": "string"}End a secret key and any still-valid previous value at once. Final: a revoked key cannot be reactivated. Needs instance:secret_keys.manage.
instance_id*stringInstance ID
secret_key_id*stringSecret key ID
OK
application/json- response
created_at?stringcreated_by?Who created it
description?stringWhat the key is for
environment?stringThe instance's environment
"production""non_production"expires_at?stringWhen the key stops working; null for never
id?stringThe key's id; safe to log
instance_id?stringThe only instance the key works on
last_used_at?stringUpdated at most once a minute
leak?Set while a leaked value still works
name?stringNames the caller
object?stringAlways "secret_key"
preview?stringThe value, masked
previous_expires_at?stringWhen the rolled-out value stops working
previous_preview?stringThe rolled-out value's preview while it still works
region?stringThe project's region
revoked_at?stringrole?stringThe key's authority on its instance
"admin""developer""support""viewer"status?stringactive, revoked or expired
"active""revoked""expired"updated_at?stringvalue?stringThe full value: on create and roll answers only. It is never shown again.
curl -X POST 'https://api.pontive.com/v1/instances/string/secret-keys/string/revoke'{ "created_at": "string", "created_by": { "email": "string", "id": "string", "name": "string" }, "description": "string", "environment": "production", "expires_at": "string", "id": "string", "instance_id": "string", "last_used_at": "string", "leak": { "detected_at": "string", "evidence": { "property1": "string", "property2": "string" }, "source": "github_secret_scanning", "value_preview": "string" }, "name": "string", "object": "string", "preview": "string", "previous_expires_at": "string", "previous_preview": "string", "region": "string", "revoked_at": "string", "role": "admin", "status": "active", "updated_at": "string", "value": "string"}Replace a secret key's value, keeping the key. The answer carries the new value once. The current value keeps working for expire_previous_in seconds (0 to 604800, default 86400). Needs instance:secret_keys.manage.
instance_id*stringInstance ID
secret_key_id*stringSecret key ID
Rotate Secret Key Request
application/json- body
Rotate Secret Key Request
expire_previous_in?integerHow long the current value keeps working, in seconds: 0 (ends it now) to 604800 (7 days). Defaults to 86400 (24 hours).
0 <= value <= 604800OK
application/json- response
created_at?stringcreated_by?Who created it
description?stringWhat the key is for
environment?stringThe instance's environment
"production""non_production"expires_at?stringWhen the key stops working; null for never
id?stringThe key's id; safe to log
instance_id?stringThe only instance the key works on
last_used_at?stringUpdated at most once a minute
leak?Set while a leaked value still works
name?stringNames the caller
object?stringAlways "secret_key"
preview?stringThe value, masked
previous_expires_at?stringWhen the rolled-out value stops working
previous_preview?stringThe rolled-out value's preview while it still works
region?stringThe project's region
revoked_at?stringrole?stringThe key's authority on its instance
"admin""developer""support""viewer"status?stringactive, revoked or expired
"active""revoked""expired"updated_at?stringvalue?stringThe full value: on create and roll answers only. It is never shown again.
curl -X POST 'https://api.pontive.com/v1/instances/string/secret-keys/string/rotate' \ -H 'Content-Type: application/json' \ -d '{}'{ "created_at": "string", "created_by": { "email": "string", "id": "string", "name": "string" }, "description": "string", "environment": "production", "expires_at": "string", "id": "string", "instance_id": "string", "last_used_at": "string", "leak": { "detected_at": "string", "evidence": { "property1": "string", "property2": "string" }, "source": "github_secret_scanning", "value_preview": "string" }, "name": "string", "object": "string", "preview": "string", "previous_expires_at": "string", "previous_preview": "string", "region": "string", "revoked_at": "string", "role": "admin", "status": "active", "updated_at": "string", "value": "string"}