List renewal requests
GET
/v1/requests
const url = 'https://api.nextpki.com/v1/requests?limit=50&offset=0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.nextpki.com/v1/requests?limit=50&offset=0' \ --header 'Authorization: Bearer <token>'Lifecycle requests for the token’s tenant. Filter by state to find work
waiting on approval (pending_approval) or renewals that failed.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
integer
offset
integer
state
string
org_id
string format: uuid
Restrict to requests assigned to this organisation.
Responses
Section titled “Responses”Liste
Media typeapplication/json
object
items
Array<object>
object
id
string format: uuid
previous_cert_id
string format: uuid
new_cert_id
string format: uuid
via_connector_id
string format: uuid
state
string
state_reason
string
attempts
integer
org_id
string format: uuid
scheduled_at
string format: date-time
created_at
string format: date-time
updated_at
string format: date-time
limit
integer
offset
integer
Example
{ "items": [ { "state": "pending_approval" } ]}Missing, malformed, unknown or revoked token
Media typeapplication/json
object
error
string
Examplegenerated
{ "error": "example"}The token’s scopes do not cover this endpoint
Media typeapplication/json
object
error
string
Examplegenerated
{ "error": "example"}