The certificate cannot be sent through the POST /credentials route. Certificate fields inside custom_data are rejected with the CERTIFICATE_FIELDS_NOT_ALLOWED error.
string
required
Content of the .pfx / .p12 (PKCS#12) file converted to Base64, on a single line, with no breaks. File must be at most 64 KB.
string
required
Password of the .pfx file. Not the court portal password.
string
System and court where the certificate will be used, for example ESAJ - TJSP - 1º grau. Use * to register it as a wildcard credential. See the accepted values in List systems and credential status: use the name field of each item.
string
Credential identifier defined by you. If omitted, the default value * is used.
object
Extra credential data. Only send it when the court also requires two-factor authentication.
Show properties
string
2FA secret (secret) — the fixed setup key of the authenticator app, never the temporary 6-digit code.
If a certificate for the same holder already exists in that credential, the message will be CERTIFICATE_UPDATED and the previous certificate is discarded.
Possible errors
Code
HTTP
When it happens
PFX_MALFORMED
400
Invalid Base64 or corrupted PFX file
PFX_PASSWORD_INVALID
400
Wrong file password
PFX_NO_PRIVATE_KEY
400
File has no private key
PFX_NO_CERTIFICATE
400
File has no certificate
PFX_EXPIRED
400
Certificate expired
PFX_NOT_YET_VALID
400
Certificate not valid yet
PFX_TOO_LARGE
400
File larger than 64 KB
CERTIFICATE_HOLDER_MISMATCH
409
New certificate belongs to a different holder (CPF/CN)
CREDENTIAL_TYPE_CONFLICT
409
A username/password credential already exists for the same credential and customer_key combination
PFX/P12 file content encoded as a single-line Base64 string
password
string
required
Password of the PKCS#12 file (not the court portal password)
system_name
string
e.g. "ESAJ - TJSP - 1º grau" or * (wildcard). Must match exactly the name of an item returned by GET /credentials.
customer_key
string
Client-defined identifier for the credential. Defaults to *
custom_data
object
Extra credential data. Only required when the court also enforces two-factor authentication.
Show child attributes
Response
Certificate created or updated
message
enum<string>
Available options:
CERTIFICATE_CREATED,
CERTIFICATE_UPDATED
customer_key
string
subject_cn
string
Certificate holder (CN)
not_after
string<date-time>
Certificate expiration date
uploaded_at
string<date-time>
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"JUDIT - Docs","description":"Documentação oficial da Judit API: consultas processuais, monitoramento, dados cadastrais, mandados de prisão e execução penal por CPF, CNPJ, OAB, NOME e CNJ.","colors":{"primary":"#15BE62","light":"#0CAE56","dark":"#15BE62"},"logo":{"light":"https://mintcdn.com/judit-docs/uEiYqFW_rH0Ad5Nq/logo/light.svg?fit=max\u0026auto=format\u0026n=uEiYqFW_rH0Ad5Nq\u0026q=85\u0026s=9ceba29b704fa64b4235f2c6094e07db","dark":"https://mintcdn.com/judit-docs/uEiYqFW_rH0Ad5Nq/logo/dark.svg?fit=max\u0026auto=format\u0026n=uEiYqFW_rH0Ad5Nq\u0026q=85\u0026s=9de4e7c77d71ae10cc2d6497b31e161c"},"favicon":"https://mintcdn.com/judit-docs/uEiYqFW_rH0Ad5Nq/favicon.png?fit=max\u0026auto=format\u0026n=uEiYqFW_rH0Ad5Nq\u0026q=85\u0026s=94aab1673c1983fecfb2e0c1a75e7990","api":{"openapi":["openapi/requests.json","openapi/tracking.json","openapi/lawsuits.json","openapi/vault.json","openapi/miner.yaml"],"playground":{"display":"interactive"},"mdx":{"auth":{"method":"key","name":"api-key"},"server":["https://requests.production.judit.io","https://tracking.production.judit.io","https://lawsuits.production.judit.io","https://miner.production.judit.io"]}},"appearance":{"default":"light"},"navbar":{"links":[{"icon":"signal","href":"https://status.judit.io","label":"Status da API"},{"icon":"download","href":"/resource/judit-api.postman_collection.json","label":"Collection Postman"}],"primary":{"type":"button","label":"Dashboard","href":"https://plataforma.judit.io/"}},"seo":{"indexing":"navigable"},"metadata":{"timestamp":false},"styling":{"latex":true},"navigation":{"languages":[{"language":"pt-BR","href":"introduction/introduction"},{"language":"en","href":"en/introduction/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"judit-docs","hasAudioNarration":false,"actualSubdomain":"judit-docs","customDomains":["docs.judit.io"],"gitSource":{"type":"github","owner":"abdallajudit","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6b0598b24d96f54971e7207c","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"pt-BR","tag":"Documentação","count":39},{"language":"en","tag":"Documentation","count":39},{"language":"pt-BR","tag":"Referência da API","count":21},{"language":"en","tag":"API Reference","count":21},{"language":"pt-BR","tag":"Miner API","count":10},{"language":"pt-BR","tag":"Recursos","count":10},{"language":"en","tag":"Miner API","count":10},{"language":"en","tag":"Resources","count":10},{"language":"pt-BR","tag":"Modelo de Dados (Schemas)","count":7},{"language":"en","tag":"Data Models (Schemas)","count":7},{"language":"pt-BR","tag":"Tracking · Monitoramento","count":6},{"language":"en","tag":"Tracking · Monitoring","count":6},{"language":"pt-BR","tag":"Referência da API · Miner","count":5},{"language":"pt-BR","tag":"Primeiros Passos","count":5},{"language":"en","tag":"API Reference · Miner","count":5},{"language":"en","tag":"Getting Started","count":5},{"language":"pt-BR","tag":"Cofre de Credenciais","count":4},{"language":"pt-BR","tag":"Consultas Síncronas","count":4},{"language":"en","tag":"Credentials Vault","count":4},{"language":"en","tag":"Synchronous Requests","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"[data-component-part=\"theme-preference-menu-item\"][data-theme-preference=\"system\"],.theme-preference-switch-option[data-theme-preference-value=\"system\"]{display:none!important}li.navbar-link:has(>a[href*=\"status.judit.io\"]),li.navbar-link:has(>a[href$=\".postman_collection.json\"]){margin:0 0.25rem;padding:0!important;border:none!important;background:transparent!important}li.navbar-link>a[href*=\"status.judit.io\"],li.navbar-link>a[href$=\".postman_collection.json\"]{display:inline-flex;align-items:center;gap:0.375rem;padding:0.5rem 0.875rem;line-height:1.25rem;white-space:nowrap;border-radius:0.75rem;font-size:0.875rem;font-weight:500;color:#ffffff!important;transition:opacity 0.15s ease}li.navbar-link>a[href*=\"status.judit.io\"]:hover,li.navbar-link>a[href$=\".postman_collection.json\"]:hover{opacity:0.9}li.navbar-link>a[href*=\"status.judit.io\"]{background-color:#1f2937}.dark li.navbar-link>a[href*=\"status.judit.io\"]{background-color:#f3f4f6;color:#111827!important}li.navbar-link>a[href$=\".postman_collection.json\"]{background-color:#ff6c37}li.navbar-link>a[href*=\"status.judit.io\"] svg,li.navbar-link>a[href$=\".postman_collection.json\"] svg{background-color:currentColor!important}table td code,table th code{word-break:keep-all!important;overflow-wrap:normal!important}.judit-ai-prompt{border:1px solid rgba(21, 190, 98, 0.35);background:rgba(21, 190, 98, 0.06)}.dark .judit-ai-prompt{border-color:rgba(21, 190, 98, 0.45);background:rgba(21, 190, 98, 0.10)}.judit-ai-prompt-btn{display:inline-flex;align-items:center;gap:0.5rem;padding:0.625rem 1.125rem;border:none;border-radius:0.75rem;background-color:#15BE62;color:#052E16;font-size:0.875rem;font-weight:600;white-space:nowrap;cursor:pointer;animation:judit-ai-pulse 2.4s ease-in-out infinite;transition:background-color 0.15s ease, transform 0.15s ease}.judit-ai-prompt-btn:hover{background-color:#0CAE56;transform:translateY(-1px)}.judit-ai-prompt-btn:focus-visible{outline:2px solid #0CAE56;outline-offset:2px}@keyframes judit-ai-pulse{0%,100%{box-shadow:0 0 0 0 rgba(21, 190, 98, 0.55)}50%{box-shadow:0 0 0 8px rgba(21, 190, 98, 0)}}@media (prefers-reduced-motion: reduce){.judit-ai-prompt-btn{animation:none;transition:none}}"}]}
{"page":{"pagePath":"en/api-reference/endpoint/vault/vaultcertificate","slug":"/en/api-reference/endpoint/vault/vaultcertificate","pageMetadata":{"title":"Digital Certificate Registration","openapi":"openapi/vault.json POST /credentials/certificate","api":"POST https://crawler.prod.judit.io/credentials/certificate","description":"Register an A1 digital certificate (.pfx / .p12) as a credential in the vault. This is the only route that accepts certificate upload.","icon":"certificate","href":"/en/api-reference/endpoint/vault/vaultcertificate"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Register an A1 digital certificate (.pfx / .p12) as a credential in the vault. This is the only route that accepts certificate upload.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Accordion,Expandable,ParamField,Table,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:_jsxs(_components.p,{children:[`The certificate `,_jsx(_components.strong,{children:`cannot`}),` be sent through the `,_jsx(_components.code,{children:`POST /credentials`}),` route. Certificate fields inside `,_jsx(_components.code,{children:`custom_data`}),` are rejected with the `,_jsx(_components.code,{children:`CERTIFICATE_FIELDS_NOT_ALLOWED`}),` error.`]})}),`\n`,_jsx(ParamField,{body:`file_base64`,type:`string`,required:true,id:`param-file-base64`,children:_jsxs(_components.p,{children:[`Content of the `,_jsx(_components.code,{children:`.pfx`}),` / `,_jsx(_components.code,{children:`.p12`}),` (PKCS#12) file converted to Base64, on a `,_jsx(_components.strong,{children:`single line`}),`, with no breaks. File must be at most 64 KB.`]})}),`\n`,_jsx(ParamField,{body:`password`,type:`string`,required:true,id:`param-password`,children:_jsxs(_components.p,{children:[`Password of the `,_jsx(_components.code,{children:`.pfx`}),` file. Not the court portal password.`]})}),`\n`,_jsx(ParamField,{body:`system_name`,type:`string`,id:`param-system-name`,children:_jsxs(_components.p,{children:[`System and court where the certificate will be used, for example `,_jsx(_components.code,{children:`ESAJ - TJSP - 1º grau`}),`. Use `,_jsx(_components.code,{children:`*`}),` to register it as a wildcard credential. See the accepted values in `,_jsx(_components.a,{href:`/en/api-reference/endpoint/vault/vault`,children:`List systems and credential status`}),`: use the `,_jsx(_components.code,{children:`name`}),` field of each item.`]})}),`\n`,_jsx(ParamField,{body:`customer_key`,type:`string`,id:`param-customer-key`,children:_jsxs(_components.p,{children:[`Credential identifier defined by you. If omitted, the default value `,_jsx(_components.code,{children:`*`}),` is used.`]})}),`\n`,_jsxs(ParamField,{body:`custom_data`,type:`object`,id:`param-custom-data`,children:[_jsx(_components.p,{children:`Extra credential data. Only send it when the court also requires two-factor authentication.`}),_jsx(Expandable,{title:`properties`,children:_jsx(ParamField,{body:`secret`,type:`string`,id:`param-secret`,children:_jsxs(_components.p,{children:[`2FA secret (`,_jsx(_components.code,{children:`secret`}),`) — the `,_jsx(_components.strong,{children:`fixed`}),` setup key of the authenticator app, never the temporary 6-digit code.`]})})})]}),`\n`,`\n`,`\n`,_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`If a certificate for the same holder already exists in that credential, the message will be `,_jsx(_components.code,{children:`CERTIFICATE_UPDATED`}),` and the previous certificate is discarded.`]})}),`\n`,_jsx(Accordion,{title:`Possible errors`,id:`possible-errors`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Code`}),_jsx(_components.th,{style:{textAlign:`left`},children:`HTTP`}),_jsx(_components.th,{style:{textAlign:`left`},children:`When it happens`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PFX_MALFORMED`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`400`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Invalid Base64 or corrupted PFX file`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PFX_PASSWORD_INVALID`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`400`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Wrong file password`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PFX_NO_PRIVATE_KEY`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`400`}),_jsx(_components.td,{style:{textAlign:`left`},children:`File has no private key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PFX_NO_CERTIFICATE`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`400`}),_jsx(_components.td,{style:{textAlign:`left`},children:`File has no certificate`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PFX_EXPIRED`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`400`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Certificate expired`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PFX_NOT_YET_VALID`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`400`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Certificate not valid yet`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PFX_TOO_LARGE`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`400`}),_jsx(_components.td,{style:{textAlign:`left`},children:`File larger than 64 KB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`CERTIFICATE_HOLDER_MISMATCH`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`409`}),_jsx(_components.td,{style:{textAlign:`left`},children:`New certificate belongs to a different holder (CPF/CN)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`CREDENTIAL_TYPE_CONFLICT`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`409`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`A username/password credential already exists for the same credential and `,_jsx(_components.code,{children:`customer_key`}),` combination`]})]})]})]})}),`\n`,_jsxs(_components.p,{children:[`Full guide, including converting the file to Base64 and the Postman walkthrough: `,_jsx(_components.a,{href:`/en/essentials/cofre-de-credenciais#registering-a-credential-with-a-digital-certificate-a1`,children:`Credentials Vault — digital certificate`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Digital Certificate Registration","openapi":"openapi/vault.json POST /credentials/certificate","api":"POST https://crawler.prod.judit.io/credentials/certificate","description":"Register an A1 digital certificate (.pfx / .p12) as a credential in the vault. This is the only route that accepts certificate upload.","icon":"certificate","href":"/en/api-reference/endpoint/vault/vaultcertificate"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Expandable,ParamField,RequestExample,ResponseExample,Table,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:_jsxs(_components.p,{children:[`The certificate `,_jsx(_components.strong,{children:`cannot`}),` be sent through the `,_jsx(_components.code,{children:`POST /credentials`}),` route. Certificate fields inside `,_jsx(_components.code,{children:`custom_data`}),` are rejected with the `,_jsx(_components.code,{children:`CERTIFICATE_FIELDS_NOT_ALLOWED`}),` error.`]})}),`\n`,_jsx(ParamField,{body:`file_base64`,type:`string`,required:true,id:`param-file-base64`,children:_jsxs(_components.p,{children:[`Content of the `,_jsx(_components.code,{children:`.pfx`}),` / `,_jsx(_components.code,{children:`.p12`}),` (PKCS#12) file converted to Base64, on a `,_jsx(_components.strong,{children:`single line`}),`, with no breaks. File must be at most 64 KB.`]})}),`\n`,_jsx(ParamField,{body:`password`,type:`string`,required:true,id:`param-password`,children:_jsxs(_components.p,{children:[`Password of the `,_jsx(_components.code,{children:`.pfx`}),` file. Not the court portal password.`]})}),`\n`,_jsx(ParamField,{body:`system_name`,type:`string`,id:`param-system-name`,children:_jsxs(_components.p,{children:[`System and court where the certificate will be used, for example `,_jsx(_components.code,{children:`ESAJ - TJSP - 1º grau`}),`. Use `,_jsx(_components.code,{children:`*`}),` to register it as a wildcard credential. See the accepted values in `,_jsx(_components.a,{href:`/en/api-reference/endpoint/vault/vault`,children:`List systems and credential status`}),`: use the `,_jsx(_components.code,{children:`name`}),` field of each item.`]})}),`\n`,_jsx(ParamField,{body:`customer_key`,type:`string`,id:`param-customer-key`,children:_jsxs(_components.p,{children:[`Credential identifier defined by you. If omitted, the default value `,_jsx(_components.code,{children:`*`}),` is used.`]})}),`\n`,_jsxs(ParamField,{body:`custom_data`,type:`object`,id:`param-custom-data`,children:[_jsx(_components.p,{children:`Extra credential data. Only send it when the court also requires two-factor authentication.`}),_jsx(Expandable,{title:`properties`,children:_jsx(ParamField,{body:`secret`,type:`string`,id:`param-secret`,children:_jsxs(_components.p,{children:[`2FA secret (`,_jsx(_components.code,{children:`secret`}),`) — the `,_jsx(_components.strong,{children:`fixed`}),` setup key of the authenticator app, never the temporary 6-digit code.`]})})})]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://crawler.prod.judit.io/credentials/certificate'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'api-key: \u003capi-key>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customer_key\": \"teste\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"system_name\": \"ESAJ - TJSP - 1º grau\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file_base64\": \"\u003cpfx-content-in-base64>\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"password\": \"123456\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL with 2FA`,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://crawler.prod.judit.io/credentials/certificate'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'api-key: \u003capi-key>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customer_key\": \"teste\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"system_name\": \"ESAJ - TJSP - 1º grau\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file_base64\": \"\u003cpfx-content-in-base64>\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"password\": \"123456\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"custom_data\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"secret\": \"JBSWY3DPEHPK3PXP\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\t\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CERTIFICATE_CREATED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\t\"customer_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"teste\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\t\"subject_cn\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"HOLDER NAME:12345678909\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\t\"not_after\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2027-01-01T00:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\t\"uploaded_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-07-31T17:00:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`If a certificate for the same holder already exists in that credential, the message will be `,_jsx(_components.code,{children:`CERTIFICATE_UPDATED`}),` and the previous certificate is discarded.`]})}),`\n`,_jsx(Accordion,{title:`Possible errors`,id:`possible-errors`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Code`}),_jsx(_components.th,{style:{textAlign:`left`},children:`HTTP`}),_jsx(_components.th,{style:{textAlign:`left`},children:`When it happens`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PFX_MALFORMED`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`400`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Invalid Base64 or corrupted PFX file`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PFX_PASSWORD_INVALID`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`400`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Wrong file password`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PFX_NO_PRIVATE_KEY`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`400`}),_jsx(_components.td,{style:{textAlign:`left`},children:`File has no private key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PFX_NO_CERTIFICATE`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`400`}),_jsx(_components.td,{style:{textAlign:`left`},children:`File has no certificate`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PFX_EXPIRED`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`400`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Certificate expired`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PFX_NOT_YET_VALID`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`400`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Certificate not valid yet`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`PFX_TOO_LARGE`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`400`}),_jsx(_components.td,{style:{textAlign:`left`},children:`File larger than 64 KB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`CERTIFICATE_HOLDER_MISMATCH`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`409`}),_jsx(_components.td,{style:{textAlign:`left`},children:`New certificate belongs to a different holder (CPF/CN)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`CREDENTIAL_TYPE_CONFLICT`})}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`409`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`A username/password credential already exists for the same credential and `,_jsx(_components.code,{children:`customer_key`}),` combination`]})]})]})]})}),`\n`,_jsxs(_components.p,{children:[`Full guide, including converting the file to Base64 and the Postman walkthrough: `,_jsx(_components.a,{href:`/en/essentials/cofre-de-credenciais#registering-a-credential-with-a-digital-certificate-a1`,children:`Credentials Vault — digital certificate`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Digital Certificate Registration","openapi":"openapi/vault.json POST /credentials/certificate","api":"POST https://crawler.prod.judit.io/credentials/certificate","description":"Register an A1 digital certificate (.pfx / .p12) as a credential in the vault. This is the only route that accepts certificate upload.","icon":"certificate","href":"/en/api-reference/endpoint/vault/vaultcertificate"}}}},"mdxExtracts":{"tableOfContents":[],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --location\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://crawler.prod.judit.io/credentials/certificate'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'api-key: \u0026#x3C;api-key>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--data \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"customer_key\": \"teste\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"system_name\": \"ESAJ - TJSP - 1º grau\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"file_base64\": \"\u0026#x3C;pfx-content-in-base64>\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"password\": \"123456\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"cURL with 2FA","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --location\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://crawler.prod.judit.io/credentials/certificate'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'api-key: \u0026#x3C;api-key>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--data \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"customer_key\": \"teste\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"system_name\": \"ESAJ - TJSP - 1º grau\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"file_base64\": \"\u0026#x3C;pfx-content-in-base64>\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"password\": \"123456\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"custom_data\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"secret\": \"JBSWY3DPEHPK3PXP\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\t\"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"CERTIFICATE_CREATED\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\t\"customer_key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"teste\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\t\"subject_cn\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"HOLDER NAME:12345678909\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\t\"not_after\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2027-01-01T00:00:00.000Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\t\"uploaded_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-07-31T17:00:00.000Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Digital Certificate Registration","path":"/credentials/certificate","servers":[{"url":"https://crawler.prod.judit.io"}],"method":"post","request":{"security":[{"title":"API Key Auth","parameters":{"header":{"api-key":{"type":"apiKey"}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"file_base64":[{"type":"string","description":"Content of the `.pfx` / `.p12` (PKCS#12) file converted to Base64, on a single line , with no breaks. File must be at most 64 KB.","required":true}],"password":[{"type":"string","description":"Password of the `.pfx` file. Not the court portal password.","required":true}],"system_name":[{"type":"string","description":"System and court where the certificate will be used, for example `ESAJ - TJSP - 1º grau` . Use `*` to register it as a wildcard credential. See the accepted values in List systems and credential status : use the `name` field of each item."}],"customer_key":[{"type":"string","description":"Credential identifier defined by you. If omitted, the default value `*` is used."}],"custom_data":[{"type":"object","properties":{"secret":[{"type":"string","description":"2FA secret ( `secret` ) — the fixed setup key of the authenticator app, never the temporary 6-digit code."}]},"description":"Extra credential data. Only send it when the court also requires two-factor authentication."}]}}],"examples":{"example":{"value":{"file_base64":"\u003cstring>","password":"\u003cstring>","system_name":"\u003cstring>","customer_key":"\u003cstring>","custom_data":{"secret":"\u003cstring>"}}}}}}},"response":{},"deprecated":false}},"jsLinks":["/_mintlify/custom/judit-docs/5d6f058166422b79/download-collection.js","/_mintlify/custom/judit-docs/536558216fee13d0/rdstation-loader.js"],"openApiReferenceData":{"operation":{"tags":["Credentials"],"summary":"Register or update a digital certificate credential","description":"Register an A1 digital certificate (.pfx / .p12) as a credential in the vault. This is the only route that accepts certificate upload.","operationId":"postCredentialsCertificate","requestBody":"36a581c0-4cd0-4e5b-9a78-466047481e0f","responses":{"200":"d57fb7ba-e563-4e06-95ba-02bfbf43f653","400":"d8490daf-d729-4cc7-bafb-3cf2135c646b","409":"55fadca6-abd9-401d-ae6a-9bf6f0b873f9"},"method":"post","type":"path","servers":["5709f1c6-0685-4be9-bf4c-4c67c2e84bf4"],"security":["3aeecf82-9a3c-4f1d-a3ef-2146f63f6b5c"],"path":"/credentials/certificate","baseUrlOptions":["https://crawler.prod.judit.io"],"title":"Register or update a digital certificate credential","codeSamples":[],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"9","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" --location"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'https://crawler.prod.judit.io/credentials/certificate'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"--header "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'api-key: \u003capi-key>'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"--header "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'Content-Type: application/json'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"--data "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'{"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"customer_key\": \"teste\","}}}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"system_name\": \"ESAJ - TJSP - 1º grau\","}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"file_base64\": \"\u003cpfx-content-in-base64>\","}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"password\": \"123456\""}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"}'"}}}},"\n"]}}}},"filename":"cURL"},{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"12","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" --location"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" 'https://crawler.prod.judit.io/credentials/certificate'"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"--header "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'api-key: \u003capi-key>'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"--header "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'Content-Type: application/json'"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"--data "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"'{"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"customer_key\": \"teste\","}}}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"system_name\": \"ESAJ - TJSP - 1º grau\","}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"file_base64\": \"\u003cpfx-content-in-base64>\","}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"password\": \"123456\","}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"custom_data\": {"}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"secret\": \"JBSWY3DPEHPK3PXP\""}}}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }"}}}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"}'"}}}},"\n"]}}}},"filename":"cURL with 2FA"}],"requestExampleType":"mdx","responseExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"7","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\t\"message\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"CERTIFICATE_CREATED\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\t\"customer_key\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"teste\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\t\"subject_cn\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"HOLDER NAME:12345678909\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\t\"not_after\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"2027-01-01T00:00:00.000Z\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":"\t\"uploaded_at\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"2026-07-31T17:00:00.000Z\""}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":""}],"responseExampleType":"mdx"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file_base64","password"],"properties":{"file_base64":{"type":"string","description":"PFX/P12 file content encoded as a single-line Base64 string","isRequired":true,"uniqueKey":"file_base64","typeLabel":"string"},"password":{"type":"string","description":"Password of the PKCS#12 file (not the court portal password)","isRequired":true,"uniqueKey":"password","typeLabel":"string"},"system_name":{"type":"string","description":"e.g. \"ESAJ - TJSP - 1º grau\" or `*` (wildcard). Must match exactly the `name` of an item returned by `GET /credentials`.","uniqueKey":"system_name","typeLabel":"string"},"customer_key":{"type":"string","description":"Client-defined identifier for the credential. Defaults to `*`","uniqueKey":"customer_key","typeLabel":"string"},"custom_data":{"type":"object","description":"Extra credential data. Only required when the court also enforces two-factor authentication.","properties":{"secret":{"type":"string","description":"2FA secret — the fixed authenticator setup key, never the temporary 6-digit code","uniqueKey":"custom_data.secret","typeLabel":"string"}},"uniqueKey":"custom_data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"customer_key":"teste","system_name":"ESAJ - TJSP - 1º grau","file_base64":"MIIK...","password":"123456","custom_data":{"secret":"JBSWY3DPEHPK3PXP"}},"examples":{"Example":{"title":"Example","value":{"customer_key":"teste","system_name":"ESAJ - TJSP - 1º grau","file_base64":"MIIK...","password":"123456","custom_data":{"secret":"JBSWY3DPEHPK3PXP"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"d57fb7ba-e563-4e06-95ba-02bfbf43f653":{"description":"Certificate created or updated","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","enum":["CERTIFICATE_CREATED","CERTIFICATE_UPDATED"],"uniqueKey":"message","typeLabel":"enum\u003cstring>"},"customer_key":{"type":"string","uniqueKey":"customer_key","typeLabel":"string"},"subject_cn":{"type":"string","description":"Certificate holder (CN)","uniqueKey":"subject_cn","typeLabel":"string"},"not_after":{"type":"string","format":"date-time","description":"Certificate expiration date","uniqueKey":"not_after","typeLabel":"string\u003cdate-time>"},"uploaded_at":{"type":"string","format":"date-time","uniqueKey":"uploaded_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"CERTIFICATE_CREATED","customer_key":"teste","subject_cn":"NOME DO TITULAR:12345678909","not_after":"2027-01-01T00:00:00.000Z","uploaded_at":"2026-07-31T17:00:00.000Z"},"examples":{"Example":{"title":"Example","value":{"message":"CERTIFICATE_CREATED","customer_key":"teste","subject_cn":"NOME DO TITULAR:12345678909","not_after":"2027-01-01T00:00:00.000Z","uploaded_at":"2026-07-31T17:00:00.000Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"d8490daf-d729-4cc7-bafb-3cf2135c646b":{"description":"Invalid certificate file. Possible codes: `PFX_MALFORMED`, `PFX_PASSWORD_INVALID`, `PFX_NO_PRIVATE_KEY`, `PFX_NO_CERTIFICATE`, `PFX_EXPIRED`, `PFX_NOT_YET_VALID`, `PFX_TOO_LARGE`","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"55fadca6-abd9-401d-ae6a-9bf6f0b873f9":{"description":"Conflict. Possible codes: `CERTIFICATE_HOLDER_MISMATCH`, `CREDENTIAL_TYPE_CONFLICT`","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"3aeecf82-9a3c-4f1d-a3ef-2146f63f6b5c":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"api-key","description":"API key for authentication","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"5709f1c6-0685-4be9-bf4c-4c67c2e84bf4":{"url":"https://crawler.prod.judit.io","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"api-key","description":"API key for authentication","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"api-key","type":"string","description":"API key for authentication","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi/vault.json"},"subdomain":"judit-docs","siteName":"JUDIT - Docs","title":"Digital Certificate Registration - JUDIT - Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/api-reference/endpoint/vault/vaultcertificate","matchLevel":1},"en":{"href":"/en/api-reference/endpoint/vault/vaultcertificate","matchLevel":0}}},"lastModified":"2026-11-16T12:09:12.801Z","originalFileLocation":"en/api-reference/endpoint/vault/vaultcertificate.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Register an A1 digital certificate (.pfx / .p12) as a credential in the vault. This is the only route that accepts certificate upload.\">\u003cmeta data-mint-head name=\"application-name\" content=\"JUDIT - Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/judit-docs/iHixS_wkkT5MtKtH/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/judit-docs/iHixS_wkkT5MtKtH/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/judit-docs/iHixS_wkkT5MtKtH/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/judit-docs/iHixS_wkkT5MtKtH/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/judit-docs/iHixS_wkkT5MtKtH/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/judit-docs/iHixS_wkkT5MtKtH/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/judit-docs/iHixS_wkkT5MtKtH/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/judit-docs/iHixS_wkkT5MtKtH/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/judit-docs/iHixS_wkkT5MtKtH/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Digital Certificate Registration - JUDIT - Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Register an A1 digital certificate (.pfx / .p12) as a credential in the vault. This is the only route that accepts certificate upload.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"JUDIT - Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.judit.io/en/api-reference/endpoint/vault/vaultcertificate\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://judit-docs.mintlify.site/_mintlify/api/og/v2?division=Credentials+Vault\u0026amp;title=Digital+Certificate+Registration\u0026amp;description=Register+an+A1+digital+certificate+%28.pfx+%2F+.p12%29+as+a+credential+in+the+vault.+This+is+the+only+route+that+accepts+certificate+upload.\u0026amp;theme=e6acae88805880ea745b7259\u0026amp;signature=20bad42c0e4a24e95a7bf44958efc3c0b18b7aa095fb95818b9d762c1ee511ae\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Digital Certificate Registration - JUDIT - Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Register an A1 digital certificate (.pfx / .p12) as a credential in the vault. This is the only route that accepts certificate upload.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://judit-docs.mintlify.site/_mintlify/api/og/v2?division=Credentials+Vault\u0026amp;title=Digital+Certificate+Registration\u0026amp;description=Register+an+A1+digital+certificate+%28.pfx+%2F+.p12%29+as+a+credential+in+the+vault.+This+is+the+only+route+that+accepts+certificate+upload.\u0026amp;theme=e6acae88805880ea745b7259\u0026amp;signature=20bad42c0e4a24e95a7bf44958efc3c0b18b7aa095fb95818b9d762c1ee511ae\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/judit-docs/iHixS_wkkT5MtKtH/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"JUDIT - Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#15BE62\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.judit.io/en/api-reference/endpoint/vault/vaultcertificate\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/endpoint/vault/vaultcertificate.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.judit.io/en/api-reference/endpoint/vault/vaultcertificate\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.judit.io/api-reference/endpoint/vault/vaultcertificate\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.judit.io/api-reference/endpoint/vault/vaultcertificate\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.judit.io/#organization\",\"name\":\"JUDIT - Docs\",\"url\":\"https://docs.judit.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/judit-docs/uEiYqFW_rH0Ad5Nq/logo/light.svg?fit=max\u0026auto=format\u0026n=uEiYqFW_rH0Ad5Nq\u0026q=85\u0026s=9ceba29b704fa64b4235f2c6094e07db\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.judit.io#website\",\"name\":\"JUDIT - Docs\",\"url\":\"https://docs.judit.io\",\"publisher\":{\"@id\":\"https://docs.judit.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.judit.io/en/api-reference/endpoint/vault/vaultcertificate#webpage\",\"url\":\"https://docs.judit.io/en/api-reference/endpoint/vault/vaultcertificate\",\"name\":\"Digital Certificate Registration\",\"description\":\"Register an A1 digital certificate (.pfx / .p12) as a credential in the vault. This is the only route that accepts certificate upload.\",\"dateModified\":\"2026-11-16T12:09:12.801Z\",\"isPartOf\":{\"@id\":\"https://docs.judit.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.judit.io/en/api-reference/endpoint/vault/vaultcertificate#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.judit.io/en/api-reference/endpoint/vault/vaultcertificate#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Credentials Vault\",\"item\":\"https://docs.judit.io/en/api-reference/endpoint/vault/vault\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Digital Certificate Registration\",\"item\":\"https://docs.judit.io/en/api-reference/endpoint/vault/vaultcertificate\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.judit.io/en/api-reference/endpoint/vault/vaultcertificate#apireference\",\"headline\":\"Digital Certificate Registration\",\"name\":\"Digital Certificate Registration\",\"description\":\"Register an A1 digital certificate (.pfx / .p12) as a credential in the vault. This is the only route that accepts certificate upload.\",\"url\":\"https://docs.judit.io/en/api-reference/endpoint/vault/vaultcertificate\",\"mainEntityOfPage\":{\"@id\":\"https://docs.judit.io/en/api-reference/endpoint/vault/vaultcertificate#webpage\"},\"dateModified\":\"2026-11-16T12:09:12.801Z\",\"publisher\":{\"@id\":\"https://docs.judit.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.judit.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"JUDIT - Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"JUDIT - Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api-reference/endpoint/vault/vaultcertificate.md","siteName":"JUDIT - Docs","nav":{"global":null,"languages":[{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/api-reference/endpoint/vault/vaultcertificate"}]},{"language":"en","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/en/introduction/introduction"}]},{"tab":"API Reference","groups":[{"group":"Requests · Asynchronous Queries","pages":[{"title":"Create a request","openapi":"openapi/requests.json POST /requests","api":"POST https://requests.production.judit.io/requests","icon":"plus","href":"/en/api-reference/endpoint/requests/create"},{"title":"Get a request by id","openapi":"openapi/requests.json GET /requests/{request_id}","api":"GET https://requests.production.judit.io/requests/{request_id}","icon":"magnifying-glass","href":"/en/api-reference/endpoint/requests/find-one"},{"title":"List created requests","openapi":"openapi/requests.json GET /requests","api":"GET https://requests.production.judit.io/requests","icon":"list","href":"/en/api-reference/endpoint/requests/find-many"}]},{"group":"Responses · Query Results","pages":[{"title":"Get a response by id","openapi":"openapi/requests.json GET /responses/{response_id}","api":"GET https://requests.production.judit.io/responses/{response_id}","icon":"circle-check","href":"/en/api-reference/endpoint/responses/find-one"},{"title":"List responses","openapi":"openapi/requests.json GET /responses","api":"GET https://requests.production.judit.io/responses","icon":"list-check","href":"/en/api-reference/endpoint/responses/find-many"}]},{"group":"Tracking · Monitoring","pages":[{"title":"Create a tracking","openapi":"openapi/tracking.json POST /tracking","api":"POST https://tracking.production.judit.io/tracking","icon":"plus","href":"/en/api-reference/endpoint/tracking/create"},{"title":"List trackings","openapi":"openapi/tracking.json GET /tracking","api":"GET https://tracking.production.judit.io/tracking","icon":"list","href":"/en/api-reference/endpoint/tracking/find-many"},{"title":"Get a tracking","openapi":"openapi/tracking.json GET /tracking/{tracking_id}","api":"GET https://tracking.production.judit.io/tracking/{tracking_id}","icon":"magnifying-glass","href":"/en/api-reference/endpoint/tracking/find-one"},{"title":"Pause a tracking","openapi":"openapi/tracking.json POST /tracking/{tracking_id}/pause","api":"POST https://tracking.production.judit.io/tracking/{tracking_id}/pause","icon":"pause","href":"/en/api-reference/endpoint/tracking/pause"},{"title":"Resume a tracking","openapi":"openapi/tracking.json POST /tracking/{tracking_id}/resume","api":"POST https://tracking.production.judit.io/tracking/{tracking_id}/resume","icon":"play","href":"/en/api-reference/endpoint/tracking/resume"},{"title":"Delete a Tracking","openapi":"openapi/tracking.json DELETE /tracking/{tracking_id}","api":"DELETE https://tracking.production.judit.io/tracking/{tracking_id}","icon":"trash","href":"/en/api-reference/endpoint/tracking/delete"}]},{"group":"Lawsuits · Synchronous Queries (JUDIT Cache)","pages":[{"title":"Count lawsuits","openapi":"openapi/lawsuits.json POST /lawsuits/count","api":"POST https://lawsuits.production.judit.io/lawsuits/count","icon":"hashtag","href":"/en/api-reference/endpoint/crawler/req-count"},{"title":"Hot Storage datalake query","openapi":"openapi/lawsuits.json POST /lawsuits","api":"POST https://lawsuits.production.judit.io/lawsuits","icon":"fire","href":"/en/api-reference/endpoint/crawler/req-hotStorage"},{"title":"Grouped historical query","openapi":"openapi/lawsuits.json POST /lawsuits/synthetic","api":"POST https://lawsuits.production.judit.io/lawsuits/synthetic","icon":"chart-pie","href":"/en/api-reference/endpoint/crawler/req-grouped"}]},{"group":"Lawsuits · Registration Data","pages":[{"title":"Create a registration data request","openapi":"openapi/lawsuits.json POST /entities","api":"POST https://lawsuits.production.judit.io/entities","icon":"id-card","href":"/en/api-reference/endpoint/registrationData/create"}]},{"group":"Lawsuit Attachments","pages":[{"title":"Download lawsuit attachment","openapi":"openapi/requests.json GET /responses/{response_id}/attachments/{attachment_id}","api":"GET https://requests.production.judit.io/responses/{response_id}/attachments/{attachment_id}","icon":"paperclip","href":"/en/api-reference/endpoint/attachments/attachment-access"},{"title":"Download consolidated attachments","openapi":"openapi/lawsuits.json GET /lawsuits/{lawsuit_cnj}/{instance}/consolidated","api":"GET https://lawsuits.production.judit.io/lawsuits/{lawsuit_cnj}/{instance}/consolidated","icon":"paperclip","href":"/en/api-reference/endpoint/attachments/attachment-consolidated"},{"title":"Download warrant attachment","openapi":"openapi/lawsuits.json GET /warrants/{lawsuit_cnj}/attachments/{attachment_id}","api":"GET https://lawsuits.production.judit.io/warrants/{lawsuit_cnj}/attachments/{attachment_id}","icon":"paperclip","href":"/en/api-reference/endpoint/attachments/attachment-access-warrant"}]},{"group":"Credentials Vault","pages":[{"title":"List systems and credential status","openapi":"openapi/vault.json GET /credentials","api":"GET https://crawler.prod.judit.io/credentials","icon":"key","href":"/en/api-reference/endpoint/vault/vault"},{"title":"Credential Registration","openapi":"openapi/vault.json POST /credentials","api":"POST https://crawler.prod.judit.io/credentials","description":"To register a credential or update an existing one, use the route below.","icon":"key","href":"/en/api-reference/endpoint/vault/vaultcreate"},{"title":"Digital Certificate Registration","openapi":"openapi/vault.json POST /credentials/certificate","api":"POST https://crawler.prod.judit.io/credentials/certificate","icon":"certificate","href":"/en/api-reference/endpoint/vault/vaultcertificate"}]}]},{"tab":"Miner API","pages":[{"title":"Miner API","href":"/en/miner/introduction"}]}]}]},"basePath":"","title":"Digital Certificate Registration - JUDIT - Docs","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CalkZbx8.js","snippetPresets-DtvvunBK.js","utils-Bn5byECU.js","style-to-object-BY3JEAdk.js","utils-DOTAoFcT.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CDauU9aU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-k2aHAqp5.js","_Uint8Array-CQuRedKT.js","isObject-FP1Yky1u.js","ApiExamples-CSBS2nDe.js","usePlaygroundInputsStore-BkN7uKke.js","shallow-6IMgYiEa.js","isEqual-DicuCknl.js","CodeSnippets-C268fsRY.js","CodeSnippet-BBA8eWiP.js","getApiPlaygroundDisplay-DMK5GRGS.js","Page-Dz3zehSO.js","api-description-markdown-DwoksVHI.js","DynamicMarkdown-XsrWkK-b.js","SectionHeading-AR_EzDYe.js","MethodPill-CvOL8UTX.js","getPastedJson-BazkMjRw.js","Check2Icon-BL_xILK9.js","axios-CsQoIw0U.js","Markdown-CX8Sr5UZ.js","AssistantPageLink-B3VcLrB0.js","dist-WDJo6xkj.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}