POST
/v1/beta/approvals/{token}No key needed
Gives the workspace the newest beta plan and mails every owner “You’re in”. Only a workspace that never had a plan can be approved, so a second call is refused with 409 already_approved and changes nothing. A mail that is refused is named in notMailed and does not undo the approval.
Path parameters
- tokenstringRequired
Response
A 200 answer carries these fields.
- statestringRequiredOne of
open. - mailedarray of stringRequired
- notMailedarray of objectRequired
Show 2 child fields
- tostringRequired
- whystringRequired
Status codes
| Status | Meaning |
|---|---|
200 |
The workspace is approved. |
404 |
The link is not valid, or it is older than 30 days (approval_link_invalid). |
409 |
The workspace already has a plan (already_approved). Nothing was changed. |
503 |
This deployment has no database (store_unavailable), or it has no beta plan (no_beta_plan). |
POST
/v1/beta/approvals/{token}Example
curl -X POST https://api.certinvo.com/v1/beta/approvals/$APPROVAL_TOKENconst approvalToken = 'value'
const response = await fetch(`https://api.certinvo.com/v1/beta/approvals/${approvalToken}`, {
method: 'POST',
})
console.log(response.status, await response.json())import requests
approval_token = "value"
response = requests.post(
f"https://api.certinvo.com/v1/beta/approvals/{approval_token}",
)
print(response.status_code, response.text)200
application/json
{
"state": "open",
"mailed": [
"string"
],
"notMailed": [
{
"to": "string",
"why": "string"
}
]
}Success response