Skip to main content
POST
/
credentials
Credential Registration
curl --request POST \
  --url https://crawler.prod.judit.io/credentials \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "credentials": [
    {
      "credential": {
        "system_name": "<string>",
        "customer_key": "<string>",
        "username": "<string>",
        "password": "<string>"
      }
    }
  ]
}
'
[
	{
		"system_name": "PJEINTER TJBA - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJMT - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJBA - 2º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJEINTER TJMT - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PROJUDI TJBA - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJBA - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJMT - 2º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PROJUDI TJBA - 2º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	}
]
credentials
array
Wildcard Credential: *If you register a credential under it, every court that does not have its own specific credential will use the wildcard credential.If no customer_key is provided, an empty customer_key will be created.
If you want to remove the credential from a given system, you must send username and password as empty.
[
	{
		"system_name": "PJEINTER TJBA - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJMT - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJBA - 2º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJEINTER TJMT - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PROJUDI TJBA - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJBA - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJMT - 2º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PROJUDI TJBA - 2º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	}
]
If the credential already exists, the message will be CREDENTIAL_UPDATED.

Authorizations

api-key
string
header
required

Body

application/json
credentials
object[]