Criar usuário
curl --request POST \
--url https://api.juridiq.com.br/user/ \
--header 'Content-Type: application/json' \
--header 'x-juridiq-api-key: <api-key>' \
--data '
{
"name": "<string>",
"email": "jsmith@example.com",
"password": "<string>",
"document": "<string>",
"contact": "<string>",
"profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"officeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"admissionDate": "<string>",
"resignationDate": "<string>",
"dateOfBirth": "<string>",
"ctpsNumber": "<string>",
"imageUrl": "<string>",
"oabNumber": "<string>",
"personType": "<string>",
"salary": "<string>",
"description": "<string>",
"postalCode": "<string>",
"addressNumber": "<string>",
"kanbanBoardsIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://api.juridiq.com.br/user/"
payload = {
"name": "<string>",
"email": "jsmith@example.com",
"password": "<string>",
"document": "<string>",
"contact": "<string>",
"profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"officeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"admissionDate": "<string>",
"resignationDate": "<string>",
"dateOfBirth": "<string>",
"ctpsNumber": "<string>",
"imageUrl": "<string>",
"oabNumber": "<string>",
"personType": "<string>",
"salary": "<string>",
"description": "<string>",
"postalCode": "<string>",
"addressNumber": "<string>",
"kanbanBoardsIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"x-juridiq-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-juridiq-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
email: 'jsmith@example.com',
password: '<string>',
document: '<string>',
contact: '<string>',
profileId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
role: '<string>',
officeId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
admissionDate: '<string>',
resignationDate: '<string>',
dateOfBirth: '<string>',
ctpsNumber: '<string>',
imageUrl: '<string>',
oabNumber: '<string>',
personType: '<string>',
salary: '<string>',
description: '<string>',
postalCode: '<string>',
addressNumber: '<string>',
kanbanBoardsIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://api.juridiq.com.br/user/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.juridiq.com.br/user/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'email' => 'jsmith@example.com',
'password' => '<string>',
'document' => '<string>',
'contact' => '<string>',
'profileId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'role' => '<string>',
'officeId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'admissionDate' => '<string>',
'resignationDate' => '<string>',
'dateOfBirth' => '<string>',
'ctpsNumber' => '<string>',
'imageUrl' => '<string>',
'oabNumber' => '<string>',
'personType' => '<string>',
'salary' => '<string>',
'description' => '<string>',
'postalCode' => '<string>',
'addressNumber' => '<string>',
'kanbanBoardsIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-juridiq-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.juridiq.com.br/user/"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"document\": \"<string>\",\n \"contact\": \"<string>\",\n \"profileId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"role\": \"<string>\",\n \"officeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"admissionDate\": \"<string>\",\n \"resignationDate\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"ctpsNumber\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"oabNumber\": \"<string>\",\n \"personType\": \"<string>\",\n \"salary\": \"<string>\",\n \"description\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"addressNumber\": \"<string>\",\n \"kanbanBoardsIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-juridiq-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.juridiq.com.br/user/")
.header("x-juridiq-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"document\": \"<string>\",\n \"contact\": \"<string>\",\n \"profileId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"role\": \"<string>\",\n \"officeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"admissionDate\": \"<string>\",\n \"resignationDate\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"ctpsNumber\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"oabNumber\": \"<string>\",\n \"personType\": \"<string>\",\n \"salary\": \"<string>\",\n \"description\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"addressNumber\": \"<string>\",\n \"kanbanBoardsIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.juridiq.com.br/user/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-juridiq-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"document\": \"<string>\",\n \"contact\": \"<string>\",\n \"profileId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"role\": \"<string>\",\n \"officeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"admissionDate\": \"<string>\",\n \"resignationDate\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"ctpsNumber\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"oabNumber\": \"<string>\",\n \"personType\": \"<string>\",\n \"salary\": \"<string>\",\n \"description\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"addressNumber\": \"<string>\",\n \"kanbanBoardsIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"email": "<string>",
"role": "<string>",
"officeId": "<string>",
"profile": {
"id": "<string>",
"name": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"hasGoogleLinked": true,
"hasPassword": true,
"document": "<string>",
"contact": "<string>",
"admissionDate": "<string>",
"resignationDate": "<string>",
"dateOfBirth": "<string>",
"ctpsNumber": "<string>",
"imageUrl": "<string>",
"oabNumber": "<string>",
"personType": "<string>",
"salary": "<string>",
"description": "<string>",
"postalCode": "<string>",
"addressNumber": "<string>",
"firstLogin": true,
"showBannerAsaas": true,
"referralToken": "<string>",
"googleIntegrationType": "full-sync",
"googleEmail": "<string>",
"calendarColor": "<string>",
"calendarSharing": "NONE"
}{
"message": "<string>",
"issues": "<unknown>"
}{
"message": "<string>",
"statusCode": 123,
"translateMessage": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"translateMessage": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"translateMessage": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"translateMessage": "<string>"
}Users
Criar usuário
Cria um usuário no escritório da chave. O e-mail é único entre todos os escritórios (um usuário excluído que ainda pode ser restaurado também ocupa o e-mail). O profileId precisa ser um perfil deste escritório; officeId é opcional e, se enviado, precisa ser o do escritório da chave. document vazio é aceito; preenchido, segue personType: PF ou Pessoa Física exige CPF de 11 dígitos, PJ ou Pessoa Jurídica exige CNPJ de 14 caracteres e, sem personType, vale um dos dois. A descrição do colaborador orienta a IA na escolha do responsável.
POST
/
user
/
Criar usuário
curl --request POST \
--url https://api.juridiq.com.br/user/ \
--header 'Content-Type: application/json' \
--header 'x-juridiq-api-key: <api-key>' \
--data '
{
"name": "<string>",
"email": "jsmith@example.com",
"password": "<string>",
"document": "<string>",
"contact": "<string>",
"profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"officeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"admissionDate": "<string>",
"resignationDate": "<string>",
"dateOfBirth": "<string>",
"ctpsNumber": "<string>",
"imageUrl": "<string>",
"oabNumber": "<string>",
"personType": "<string>",
"salary": "<string>",
"description": "<string>",
"postalCode": "<string>",
"addressNumber": "<string>",
"kanbanBoardsIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://api.juridiq.com.br/user/"
payload = {
"name": "<string>",
"email": "jsmith@example.com",
"password": "<string>",
"document": "<string>",
"contact": "<string>",
"profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"officeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"admissionDate": "<string>",
"resignationDate": "<string>",
"dateOfBirth": "<string>",
"ctpsNumber": "<string>",
"imageUrl": "<string>",
"oabNumber": "<string>",
"personType": "<string>",
"salary": "<string>",
"description": "<string>",
"postalCode": "<string>",
"addressNumber": "<string>",
"kanbanBoardsIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"x-juridiq-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-juridiq-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
email: 'jsmith@example.com',
password: '<string>',
document: '<string>',
contact: '<string>',
profileId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
role: '<string>',
officeId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
admissionDate: '<string>',
resignationDate: '<string>',
dateOfBirth: '<string>',
ctpsNumber: '<string>',
imageUrl: '<string>',
oabNumber: '<string>',
personType: '<string>',
salary: '<string>',
description: '<string>',
postalCode: '<string>',
addressNumber: '<string>',
kanbanBoardsIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://api.juridiq.com.br/user/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.juridiq.com.br/user/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'email' => 'jsmith@example.com',
'password' => '<string>',
'document' => '<string>',
'contact' => '<string>',
'profileId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'role' => '<string>',
'officeId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'admissionDate' => '<string>',
'resignationDate' => '<string>',
'dateOfBirth' => '<string>',
'ctpsNumber' => '<string>',
'imageUrl' => '<string>',
'oabNumber' => '<string>',
'personType' => '<string>',
'salary' => '<string>',
'description' => '<string>',
'postalCode' => '<string>',
'addressNumber' => '<string>',
'kanbanBoardsIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-juridiq-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.juridiq.com.br/user/"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"document\": \"<string>\",\n \"contact\": \"<string>\",\n \"profileId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"role\": \"<string>\",\n \"officeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"admissionDate\": \"<string>\",\n \"resignationDate\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"ctpsNumber\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"oabNumber\": \"<string>\",\n \"personType\": \"<string>\",\n \"salary\": \"<string>\",\n \"description\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"addressNumber\": \"<string>\",\n \"kanbanBoardsIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-juridiq-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.juridiq.com.br/user/")
.header("x-juridiq-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"document\": \"<string>\",\n \"contact\": \"<string>\",\n \"profileId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"role\": \"<string>\",\n \"officeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"admissionDate\": \"<string>\",\n \"resignationDate\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"ctpsNumber\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"oabNumber\": \"<string>\",\n \"personType\": \"<string>\",\n \"salary\": \"<string>\",\n \"description\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"addressNumber\": \"<string>\",\n \"kanbanBoardsIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.juridiq.com.br/user/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-juridiq-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"document\": \"<string>\",\n \"contact\": \"<string>\",\n \"profileId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"role\": \"<string>\",\n \"officeId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"admissionDate\": \"<string>\",\n \"resignationDate\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"ctpsNumber\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"oabNumber\": \"<string>\",\n \"personType\": \"<string>\",\n \"salary\": \"<string>\",\n \"description\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"addressNumber\": \"<string>\",\n \"kanbanBoardsIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"email": "<string>",
"role": "<string>",
"officeId": "<string>",
"profile": {
"id": "<string>",
"name": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"hasGoogleLinked": true,
"hasPassword": true,
"document": "<string>",
"contact": "<string>",
"admissionDate": "<string>",
"resignationDate": "<string>",
"dateOfBirth": "<string>",
"ctpsNumber": "<string>",
"imageUrl": "<string>",
"oabNumber": "<string>",
"personType": "<string>",
"salary": "<string>",
"description": "<string>",
"postalCode": "<string>",
"addressNumber": "<string>",
"firstLogin": true,
"showBannerAsaas": true,
"referralToken": "<string>",
"googleIntegrationType": "full-sync",
"googleEmail": "<string>",
"calendarColor": "<string>",
"calendarSharing": "NONE"
}{
"message": "<string>",
"issues": "<unknown>"
}{
"message": "<string>",
"statusCode": 123,
"translateMessage": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"translateMessage": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"translateMessage": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"translateMessage": "<string>"
}Authorizations
Body
application/json
Response
Default Response

