Desarrolladores
Códigos de error
Todos los códigos HTTP y valores de error.code devueltos por la API Pública de Inkspectra v1.
Formato
Envoltura de error
Cada respuesta de error usa el mismo envoltorio JSON con un code estable, un message legible y el requestId para rastreo en soporte.
{
"error": {
"code": "validation_error",
"message": "sourceType is required.",
"requestId": "req_01jz..."
}
}Incluye el requestId al reportar un problema. También aparece en el header de respuesta X-Request-Id.
HTTP
Códigos de estado
Códigos de estado utilizados por la API y cuándo los encontrarás.
Accepted
Analysis queued and will be processed asynchronously.
Bad Request
Validation error: missing required field, invalid value, or test/live mode mismatch.
Unauthorized
No API key provided, or the key is invalid/expired/revoked.
Forbidden
Key is valid but lacks the required scope for this endpoint.
Not Found
Resource not found, or not visible for the current organization/mode.
Conflict
Operation cannot proceed due to current resource state (e.g. analysis not yet completed).
Gone
Endpoint has been retired. The error body contains a replacement pointer.
Payload Too Large
Uploaded file exceeds the maximum allowed size.
Unsupported Media Type
File type is not accepted (only PDF) or magic bytes do not match the declared MIME type.
Unprocessable Entity
PDF could not be parsed or contained no extractable text.
Too Many Requests
Rate limit exceeded. Check X-RateLimit-Remaining and X-RateLimit-Reset headers.
Service Unavailable
Live execution requested but the runtime cannot process live requests. Use a test key, or retry later.
Códigos de error
Catálogo de error.code
El campo code en el objeto de error. Úsalo para manejo programático — los mensajes pueden cambiar, los códigos son estables.
invalid_api_keyInvalid, expired, or revoked API key.
insufficient_scopeThe key does not have the required scope for this endpoint.
rate_limit_exceededToo many requests. Slow down and check the X-RateLimit-* response headers.
validation_errorRequest body or query parameter failed validation. See message for details.
not_foundResource not found or not accessible under the current organization and mode.
analysis_failedThe analysis pipeline failed. The analysisId is still valid; re-submit or create a new analysis.
live_execution_unavailableA live key was used but the runtime cannot execute live analyses. Use fpk_test_* instead.
file_too_largeUploaded PDF exceeds the maximum allowed file size.
unsupported_media_typeOnly PDF documents (application/pdf) are accepted. The file magic bytes must match.
pdf_unreadableThe PDF could not be parsed or contained no extractable text content.
endpoint_retiredThis endpoint has been retired. The message field contains the replacement endpoint path.
internal_errorUnexpected server error. Retry with exponential backoff; contact support if it persists.
Headers de respuesta
Headers de diagnóstico
Headers devueltos en cada respuesta /v1.
X-Request-IdRefleja el requestId del cuerpo de error. Presente en todas las respuestas.
X-RateLimit-LimitMáximo de solicitudes permitidas en la ventana actual.
X-RateLimit-RemainingSolicitudes restantes en la ventana actual.
X-RateLimit-ResetTimestamp Unix (segundos) cuando se restablece la ventana de rate limit.
¿Necesitas el catálogo completo de endpoints?
La Referencia de API lista los 9 endpoints con esquemas de solicitud y respuesta.