Revisiones: coste e inicio
Consulte el saldo Diff y el coste, cree una ejecución y lea su estado. Esta referencia describe los métodos y el historial de las tareas enviadas.
En esta página
- GET /public-api/v1/diff-projects/{id}/balance
- POST /public-api/v1/diff-projects/{id}/reports/cost
- POST /public-api/v1/diff-projects/{id}/reports/run
- GET /public-api/v1/diff-projects/{id}/reports/runs
- GET /public-api/v1/diff-projects/{id}/reports/runs/{run_id}
Elija un método en el índice. Revise el método HTTP, la ruta, los permisos, los parámetros obligatorios y el cuerpo. Los bloques JSON con schema, properties y $ref describen el contrato; no se envían como cuerpo de una solicitud. Los ejemplos de solicitudes y los esquemas de respuesta están identificados por separado.
GET /public-api/v1/diff-projects/{id}/balance
Parámetros
Modelos de datos relacionados: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffBalanceResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Respuestas
200
Saldo y opciones de pago.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffBalanceResponse"
}
}
}
}
default
Sin una clave válida, las cabeceras de límites corresponden a intentos fallidos por IP. Tras la autenticación, corresponden a la clave o cuenta. Pueden faltar por un bloqueo previo o un contador no disponible. X-RateLimit-Reset es una marca de tiempo Unix en segundos; Retry-After en 429 es una espera en segundos.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
POST /public-api/v1/diff-projects/{id}/reports/cost
Antes de estimar el coste, añade nuevas URL según el modo guardado del proyecto y les asigna la regla seleccionada. Se conservan las URL existentes y sus reglas. La estimación no reserva ni consume créditos o dinero.
Modelos de datos relacionados: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffCostRequest · DiffCostResponse · ErrorResponse · XID
Parámetros
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Solicitud
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffCostRequest"
}
}
}
}
Respuestas
200
Estimación de coste firmada.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffCostResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
POST /public-api/v1/diff-projects/{id}/reports/run
Prepara de nuevo las URL antes del pago. Si el coste final o el número de páginas difieren de cost_estimate_id, devuelve 409 cost_estimate_mismatch sin cobrar. Obtenga una nueva estimación y reintente con un Idempotency-Key nuevo.
Modelos de datos relacionados: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRunRequest · DiffRunResponse · ErrorResponse · XID
Parámetros
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Idempotency-Key (header)
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
}
Solicitud
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRunRequest"
}
}
}
}
Respuestas
200
Ejecución de Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRunResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/reports/runs
Parámetros
Modelos de datos relacionados: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRunListResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
limit (query)
{
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"default": 100
}
}
offset (query)
{
"schema": {
"type": "integer",
"minimum": 0,
"default": 0
}
}
Respuestas
200
Ejecuciones de Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRunListResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/reports/runs/{run_id}
Parámetros
Modelos de datos relacionados: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRunResponse · ErrorResponse · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
run_id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
Respuestas
200
Ejecución de Diff.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiffRunResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
