curl --request DELETE \
--url https://api.gigstack.io/v2/users/me/account-approvals/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gigstack.io/v2/users/me/account-approvals/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gigstack.io/v2/users/me/account-approvals/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"operation_id": "00000000-0000-4000-8000-000000000001",
"action": "api_keys.generate",
"team": {
"id": "team_example",
"legal_name": null,
"tax_id": null
},
"billing_account_id": "billing_example",
"payload": {},
"requested_modes": [
true,
false
],
"effect_scope": "team_credentials",
"status": "cancelled",
"created_at": 1700000000000,
"expires_at": 1700000600000,
"completed_at": null,
"review_url": "https://app.gigstack.pro/account/approvals/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"can_cancel": false,
"disclosure_version": "credential-approval-v1",
"existing_key_ids": [],
"terms": null,
"receipt": null,
"error": null,
"membership_change": null,
"invitation_change": null,
"managed_identity_change": null,
"managed_identity_execution": null,
"managed_session_change": null,
"managed_session_execution": null
},
"timestamp": 1700000000000
}Cancel a pending account approval
Requires a verified personal Firebase or MCP identity and current action authority. Team API/OAuth keys cannot prepare approvals. Reads and cancellation bind the creator and originating MCP credential/mode. Browser confirmation rechecks current authority, credential validity and relevant account state. Preparation never issues a credential or accepts terms.
Cancel this exact pending request. Cancellation neither revokes issued credentials nor reverses a completed action. No automatic replacement approval is created. Select an authorized current team with the team query parameter for authentication context; preparation should use the same team as body.team_id. This does not alter the originating credential or mode.
Membership actions require the current team owner. Prepare a transfer with payload , or an admin promotion/addition with payload . The browser reviews the frozen target identity, current role and account-wide consequences. Team membership is shared across production and test: requested_modes is empty for these actions, not a sandbox-only promise. The old owner remains an administrator after transfer; billing-account ownership is unchanged. Membership execution returns no credentials. Ordinary editor/viewer changes and permissions-only patches retain their existing direct routes and authority.
curl --request DELETE \
--url https://api.gigstack.io/v2/users/me/account-approvals/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gigstack.io/v2/users/me/account-approvals/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gigstack.io/v2/users/me/account-approvals/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"operation_id": "00000000-0000-4000-8000-000000000001",
"action": "api_keys.generate",
"team": {
"id": "team_example",
"legal_name": null,
"tax_id": null
},
"billing_account_id": "billing_example",
"payload": {},
"requested_modes": [
true,
false
],
"effect_scope": "team_credentials",
"status": "cancelled",
"created_at": 1700000000000,
"expires_at": 1700000600000,
"completed_at": null,
"review_url": "https://app.gigstack.pro/account/approvals/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"can_cancel": false,
"disclosure_version": "credential-approval-v1",
"existing_key_ids": [],
"terms": null,
"receipt": null,
"error": null,
"membership_change": null,
"invitation_change": null,
"managed_identity_change": null,
"managed_identity_execution": null,
"managed_session_change": null,
"managed_session_execution": null
},
"timestamp": 1700000000000
}Authorizations
Authentication Method: HTTP Bearer token.
The runtime requires the literal Bearer prefix — a bare token in the
Authorization header is rejected with 401 unauthorized.
Header Format: Authorization: Bearer YOUR_API_KEY
Your API key is a JWT. Live keys operate on live data (livemode: true);
test keys operate on isolated test data (livemode: false).
Get your key at: app.gigstack.pro/settings?tab=api
Errors: credential failures are answered by the authentication layer with a raw
{ "message": … } body, not the standardized envelope — 401 for a missing, malformed or
expired token, 403 for a revoked key or a plan without API access. See the Unauthorized
and AuthForbidden responses.
Path Parameters
^[a-f0-9]{64}$Query Parameters
gigstack Connect: Target team ID for multi-team access.
Requires gigstack Connect enabled on your team and shared billing account.
Also requires the multipleIssuerAccounts feature on your plan. Requests targeting a
team other than the one your API key belongs to return 403 without it.
Only API keys can use it: an OAuth access token sent with another team's id is rejected with
403 Team mismatch with OAuth token.
Optional — omit it entirely unless you are acting on another team. It deliberately
carries no example value so generated snippets do not emit ?team=undefined; when the
parameter is absent, the team is derived from your API key.
Example: ?team=team_xyz789