{"openapi":"3.1.0","info":{"title":"DestraJud — API pública","version":"1.0.0","description":"Consultas públicas por CNJ e CPF, sem chave. 50 buscas por IP/dia UTC, compartilhadas com MCP e site; 60 requisições por minuto. Cada POST válido consome uma unidade, mesmo com cache ou falha posterior da fonte. CPF apenas no corpo. Nenhum valor privado ou pedido de análise é exposto."},"servers":[{"url":"https://destrajud.com.br/api/v1"}],"security":[],"externalDocs":{"url":"https://destrajud.com.br/desenvolvedores"},"paths":{"/searches":{"post":{"operationId":"searchProcesses","summary":"Iniciar busca por CNJ ou CPF","description":"CNJ aceita force para ignorar cache. CPF não exige estado e devolve a cobertura disponível. followUpId indica complemento; acompanhe com GET /searches/{id}. Resposta pending é uma consulta em andamento, não ausência de processo.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"},"examples":{"cnj":{"value":{"kind":"cnj","cnj":"5499791-35.2022.8.09.0051"}}}}}},"responses":{"200":{"description":"Dados iniciais, resultado vazio ou consulta em andamento.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Limite da janela."},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Unidades restantes."},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Renovação em segundos Unix UTC."},"X-RateLimit-Window":{"schema":{"type":"string","enum":["day","minute"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"400":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Cota excedida. Respeite Retry-After em segundos.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Segundos até a renovação da janela."}}},"503":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/processes/{cnj}":{"get":{"operationId":"getProcess","summary":"Ler processo salvo sem consumir busca diária; não inicia coleta se ausente","parameters":[{"name":"cnj","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Resposta pública.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"400":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Cota excedida. Respeite Retry-After em segundos.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Segundos até a renovação da janela."}}},"503":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/searches/{id}":{"get":{"operationId":"getSearch","summary":"Acompanhar complemento sem consumir busca diária; intervalo recomendado de dois segundos","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Resposta pública.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchJob"}}}},"400":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Cota excedida. Respeite Retry-After em segundos.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Segundos até a renovação da janela."}}},"503":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/limits":{"get":{"operationId":"getLimits","summary":"Consultar cota diária restante do IP de saída","responses":{"200":{"description":"Resposta pública.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quota"}}}},"400":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Cota excedida. Respeite Retry-After em segundos.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Segundos até a renovação da janela."}}},"503":{"description":"Entrada inválida, registro indisponível ou falha da consulta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"SearchRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"cnj"},"cnj":{"type":"string"},"force":{"type":"boolean"}},"required":["kind","cnj"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cpf"},"cpf":{"type":"string"}},"required":["kind","cpf"],"additionalProperties":false}]},"SearchResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"type":"string","enum":["found","empty","pending"]},"processes":{"type":"array","items":{"type":"object","properties":{"cnj":{"type":"string"},"tribunal":{"type":"string","minLength":1,"maxLength":100},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"facts":{"type":"object","properties":{"courtName":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"classes":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"subjects":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"filedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]},"causeValue":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},"required":["courtName","classes","subjects","filedAt","causeValue"],"additionalProperties":false},"factsCached":{"type":"boolean"},"history":{"type":"object","properties":{"source":{"type":"string","enum":["TJGO — consulta pública","Jus.br"]},"sourceUrl":{"type":"string","enum":["https://projudi.tjgo.jus.br/BuscaProcesso?PaginaAtual=4&TipoConsultaProcesso=24","https://portaldeservicos.pdpj.jus.br/"]},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"coverage":{"type":"string","enum":["complete","partial"]},"cached":{"type":"boolean"},"events":{"type":"array","items":{"type":"object","properties":{"sequence":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"occurredAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"},"description":{"type":"string","minLength":1,"maxLength":50000},"documentsMasked":{"type":"boolean"}},"required":["sequence","occurredAt","description","documentsMasked"],"additionalProperties":false}}},"required":["source","sourceUrl","checkedAt","coverage","events"],"additionalProperties":false},"historyStatus":{"type":"string","enum":["verification-required","unavailable","unsupported"]},"participants":{"type":"object","properties":{"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"source":{"type":"string","enum":["TJGO — consulta pública","Jus.br"]},"cached":{"type":"boolean"},"entries":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","minLength":1,"maxLength":200}},"required":["name","role"],"additionalProperties":false}}},"required":["checkedAt","source","entries"],"additionalProperties":false}},"required":["cnj","tribunal","checkedAt"],"additionalProperties":false}},"cached":{"type":"boolean"},"followUpId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"partial":{"type":"boolean"}},"required":["status","processes"],"additionalProperties":false},"PublicProcess":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"cnj":{"type":"string"},"tribunal":{"type":"string","minLength":1,"maxLength":100},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"facts":{"type":"object","properties":{"courtName":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"classes":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"subjects":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"filedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]},"causeValue":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},"required":["courtName","classes","subjects","filedAt","causeValue"],"additionalProperties":false},"factsCached":{"type":"boolean"},"history":{"type":"object","properties":{"source":{"type":"string","enum":["TJGO — consulta pública","Jus.br"]},"sourceUrl":{"type":"string","enum":["https://projudi.tjgo.jus.br/BuscaProcesso?PaginaAtual=4&TipoConsultaProcesso=24","https://portaldeservicos.pdpj.jus.br/"]},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"coverage":{"type":"string","enum":["complete","partial"]},"cached":{"type":"boolean"},"events":{"type":"array","items":{"type":"object","properties":{"sequence":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"occurredAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"},"description":{"type":"string","minLength":1,"maxLength":50000},"documentsMasked":{"type":"boolean"}},"required":["sequence","occurredAt","description","documentsMasked"],"additionalProperties":false}}},"required":["source","sourceUrl","checkedAt","coverage","events"],"additionalProperties":false},"historyStatus":{"type":"string","enum":["verification-required","unavailable","unsupported"]},"participants":{"type":"object","properties":{"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"source":{"type":"string","enum":["TJGO — consulta pública","Jus.br"]},"cached":{"type":"boolean"},"entries":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","minLength":1,"maxLength":200}},"required":["name","role"],"additionalProperties":false}}},"required":["checkedAt","source","entries"],"additionalProperties":false}},"required":["cnj","tribunal","checkedAt"],"additionalProperties":false},"SearchJob":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cnj":{"type":"string"},"status":{"type":"string","enum":["queued","running","completed","failed","restricted"]},"initialStatus":{"type":"string","enum":["found","empty","unavailable"]},"initialProcess":{"type":"object","properties":{"cnj":{"type":"string"},"tribunal":{"type":"string","minLength":1,"maxLength":100},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"facts":{"type":"object","properties":{"courtName":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"classes":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"subjects":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"filedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]},"causeValue":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},"required":["courtName","classes","subjects","filedAt","causeValue"],"additionalProperties":false},"factsCached":{"type":"boolean"},"history":{"type":"object","properties":{"source":{"type":"string","enum":["TJGO — consulta pública","Jus.br"]},"sourceUrl":{"type":"string","enum":["https://projudi.tjgo.jus.br/BuscaProcesso?PaginaAtual=4&TipoConsultaProcesso=24","https://portaldeservicos.pdpj.jus.br/"]},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"coverage":{"type":"string","enum":["complete","partial"]},"cached":{"type":"boolean"},"events":{"type":"array","items":{"type":"object","properties":{"sequence":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"occurredAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"},"description":{"type":"string","minLength":1,"maxLength":50000},"documentsMasked":{"type":"boolean"}},"required":["sequence","occurredAt","description","documentsMasked"],"additionalProperties":false}}},"required":["source","sourceUrl","checkedAt","coverage","events"],"additionalProperties":false},"historyStatus":{"type":"string","enum":["verification-required","unavailable","unsupported"]},"participants":{"type":"object","properties":{"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"source":{"type":"string","enum":["TJGO — consulta pública","Jus.br"]},"cached":{"type":"boolean"},"entries":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","minLength":1,"maxLength":200}},"required":["name","role"],"additionalProperties":false}}},"required":["checkedAt","source","entries"],"additionalProperties":false}},"required":["cnj","tribunal","checkedAt"],"additionalProperties":false},"process":{"type":"object","properties":{"cnj":{"type":"string"},"tribunal":{"type":"string","minLength":1,"maxLength":100},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"facts":{"type":"object","properties":{"courtName":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"classes":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"subjects":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"filedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]},{"type":"null"}]},"causeValue":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},"required":["courtName","classes","subjects","filedAt","causeValue"],"additionalProperties":false},"factsCached":{"type":"boolean"},"history":{"type":"object","properties":{"source":{"type":"string","enum":["TJGO — consulta pública","Jus.br"]},"sourceUrl":{"type":"string","enum":["https://projudi.tjgo.jus.br/BuscaProcesso?PaginaAtual=4&TipoConsultaProcesso=24","https://portaldeservicos.pdpj.jus.br/"]},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"coverage":{"type":"string","enum":["complete","partial"]},"cached":{"type":"boolean"},"events":{"type":"array","items":{"type":"object","properties":{"sequence":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"occurredAt":{"type":"string","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"},"description":{"type":"string","minLength":1,"maxLength":50000},"documentsMasked":{"type":"boolean"}},"required":["sequence","occurredAt","description","documentsMasked"],"additionalProperties":false}}},"required":["source","sourceUrl","checkedAt","coverage","events"],"additionalProperties":false},"historyStatus":{"type":"string","enum":["verification-required","unavailable","unsupported"]},"participants":{"type":"object","properties":{"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"source":{"type":"string","enum":["TJGO — consulta pública","Jus.br"]},"cached":{"type":"boolean"},"entries":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","minLength":1,"maxLength":200}},"required":["name","role"],"additionalProperties":false}}},"required":["checkedAt","source","entries"],"additionalProperties":false}},"required":["cnj","tribunal","checkedAt"],"additionalProperties":false},"cached":{"type":"boolean"},"changed":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","cnj","status","initialStatus","changed","createdAt","expiresAt"],"additionalProperties":false},"Error":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED","INVALID_INPUT","SOURCE_UNAVAILABLE","CPF_UNAVAILABLE","UNAUTHORIZED","INTERNAL_ERROR","MOVEMENT_SEARCH_UNAVAILABLE","HISTORY_UNAVAILABLE","SEARCH_NOT_FOUND","REQUEST_UNAVAILABLE","REVIEW_UNAVAILABLE","REVIEW_CONFLICT","REVIEW_LIMIT","REQUEST_CONFLICT","REQUEST_NOT_FOUND","CREDIT_UNAVAILABLE","CONFIRMATION_FAILED","CONFIRMATION_LIMIT"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false},"Quota":{"type":"object","required":["limit","remaining","resetAt","retryAfter","window"],"properties":{"limit":{"type":"integer"},"remaining":{"type":"integer"},"resetAt":{"type":"string","format":"date-time"},"retryAfter":{"type":"integer","description":"Segundos até a renovação, mesmo quando ainda há cota."},"window":{"type":"string","enum":["day","minute"]}}}}}}