usage
Obtenir le solde de crédits
Le solde actuel, ainsi que chaque attribution avec le montant restant et la date d’expiration.
GET/v1/credits
Nécessite account:read. Ne coûte rien.
Autorisations
Authorizationbearerin headerrequired
Récupérer le solde de crédits et chaque attribution
dataobjectrequired
Show child attributes
data.balanceintegerrequiredrange: -9007199254740991–9007199254740991
data.grantsobject[]required
Show child attributes
data.grants.idstringrequired
data.grants.typestringrequired
data.grants.amountintegerrequiredrange: -9007199254740991–9007199254740991
data.grants.usedintegerrequiredrange: -9007199254740991–9007199254740991
data.grants.remainingintegerrequiredrange: -9007199254740991–9007199254740991
data.grants.granted_atstringnullrequired
data.grants.expires_atstringnullrequired
Codes possibles : invalid_request, unknown_field, invalid_parameter, invalid_cursor
errorobjectrequired
Show child attributes
error.messagestringrequired
error.docs_urlstringrequired
error.action_urlstring<uri>
error.detailsRecord<string, object>
Codes possibles : authentication_required, invalid_api_key, api_key_expired, api_key_revoked
errorobjectrequired
Show child attributes
error.messagestringrequired
error.docs_urlstringrequired
error.action_urlstring<uri>
error.detailsRecord<string, object>
Codes possibles : insufficient_credits
errorobjectrequired
Show child attributes
error.messagestringrequired
error.docs_urlstringrequired
error.action_urlstring<uri>
error.detailsRecord<string, object>
Codes possibles : insufficient_scope, feature_not_available, admin_required
errorobjectrequired
Show child attributes
error.messagestringrequired
error.docs_urlstringrequired
error.action_urlstring<uri>
error.detailsRecord<string, object>
Codes possibles : resource_not_found
errorobjectrequired
Show child attributes
error.messagestringrequired
error.docs_urlstringrequired
error.action_urlstring<uri>
error.detailsRecord<string, object>
Codes possibles : conflict, result_not_ready, idempotency_key_reused
errorobjectrequired
Show child attributes
error.messagestringrequired
error.docs_urlstringrequired
error.action_urlstring<uri>
error.detailsRecord<string, object>
Codes possibles : result_expired
errorobjectrequired
Show child attributes
error.messagestringrequired
error.docs_urlstringrequired
error.action_urlstring<uri>
error.detailsRecord<string, object>
Codes possibles : request_too_large
errorobjectrequired
Show child attributes
error.messagestringrequired
error.docs_urlstringrequired
error.action_urlstring<uri>
error.detailsRecord<string, object>
Codes possibles : request_too_large_for_plan
errorobjectrequired
Show child attributes
error.messagestringrequired
error.docs_urlstringrequired
error.action_urlstring<uri>
error.detailsRecord<string, object>
Codes possibles : rate_limited
errorobjectrequired
Show child attributes
error.messagestringrequired
error.docs_urlstringrequired
error.action_urlstring<uri>
error.detailsRecord<string, object>
Codes possibles : internal_error
errorobjectrequired
Show child attributes
error.messagestringrequired
error.docs_urlstringrequired
error.action_urlstring<uri>
error.detailsRecord<string, object>
Codes possibles : service_unavailable
errorobjectrequired
Show child attributes
error.messagestringrequired
error.docs_urlstringrequired
error.action_urlstring<uri>
error.detailsRecord<string, object>