Skip to main content
POST
/
requests
Create a request
curl --request POST \
  --url https://requests.prod.judit.io/requests \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "search": {
    "search_type": "<string>",
    "search_key": "<string>",
    "response_type": "<string>",
    "cache_ttl_in_days": 123,
    "should_search_branches": true,
    "search_params": {
      "lawsuit_instance": 123,
      "masked_response": true,
      "filter": {
        "side": "<string>",
        "distribution_date_gte": "<string>",
        "amount_gte": 123,
        "amount_lte": 123,
        "tribunals": {
          "keys": [
            {}
          ],
          "not_equal": true
        },
        "subject_codes": {
          "keys": [
            {}
          ],
          "not_equal": true
        },
        "classification_codes": {
          "keys": [
            {}
          ],
          "not_equal": true
        }
      },
      "credential": {
        "customer_key": "<string>"
      }
    }
  }
}
'
{
    "request_id": "00000000-0000-0000-0000-000000000001",
    "search": {
        "search_type": "lawsuit_cnj",
        "search_key": "9999999-99.9999.9.99.9999",
        "search_params": {}
    },
    "origin": "api",
    "origin_id": "00000000-0000-0000-0000-000000000002",
    "status": "pending",
    "tags": {},
    "created_at": "2023-10-18T18:36:58.775Z",
    "updated_at": "2023-10-18T18:36:58.775Z"
}
{
    "request_id": "00000000-0000-0000-0000-000000000001",
    "search": {
        "search_type": "lawsuit_cnj",
        "search_key": "9999999-99.9999.9.99.9999",
        "search_params": {}
    },
    "origin": "api",
    "origin_id": "00000000-0000-0000-0000-000000000002",
    "status": "pending",
    "tags": {},
    "created_at": "2023-10-18T18:36:58.775Z",
    "updated_at": "2023-10-18T18:36:58.775Z"
}

Authorizations

api-key
string
header
required

Body

application/json