Check for a pending recharge request
GET
/api/v1/plans/recharge-request/status
const url = 'https://api.justcrawl.io/api/v1/plans/recharge-request/status';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.justcrawl.io/api/v1/plans/recharge-request/status \ --header 'Authorization: Bearer <token>'Reports whether this org already has a credit recharge request awaiting review.
Poll it after POST /api/v1/plans/recharge-request to avoid submitting a
duplicate while the first one is still being processed.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Whether a recharge request is currently pending.
Media typeapplication/json
object
hasPending
True while a submitted request is awaiting review.
boolean
Examplegenerated
{ "hasPending": true}Missing or invalid authentication token
Media typeapplication/json
object
error
string
Example
{ "error": "Missing or invalid authentication token"}Insufficient permissions for this operation
Media typeapplication/json
object
error
string
Example
{ "error": "No organization. Complete onboarding first."}Unexpected server error. Logs and PostHog $exception capture
Media typeapplication/json
object
error
string
Example
{ "error": "Something went wrong"}