Skip to content

Check for a pending recharge request

GET
/api/v1/plans/recharge-request/status
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.

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"
}