Criar pasta
curl --request POST \
--url https://api.lazydata.com.br/v1/storage/folders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"parent_id": "<string>"
}
'import requests
url = "https://api.lazydata.com.br/v1/storage/folders"
payload = {
"name": "<string>",
"parent_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', parent_id: '<string>'})
};
fetch('https://api.lazydata.com.br/v1/storage/folders', 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.lazydata.com.br/v1/storage/folders",
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>',
'parent_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.lazydata.com.br/v1/storage/folders"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"parent_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.lazydata.com.br/v1/storage/folders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"parent_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lazydata.com.br/v1/storage/folders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"parent_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Pasta criada.",
"result": {
"id": "54d8a266-4e21-4a9a-9c15-b4b93bc11c6e",
"type": "folder",
"name": "Contratos",
"parent_id": null,
"created_at": "2026-06-22T11:55:00+00:00",
"updated_at": "2026-06-22T11:55:00+00:00"
}
}
{
"code": 400,
"message": "Nome da pasta inválido."
}
{
"code": 403,
"message": "Seu plano atual não possui armazenamento habilitado."
}
{
"code": 404,
"message": "Pasta não localizada."
}
{
"code": 409,
"message": "Já existe uma pasta com este nome."
}
Armazenamento
Criar pasta
Crie uma pasta na raiz ou dentro de outra pasta do armazenamento.
POST
https://api.lazydata.com.br/
/
v1
/
storage
/
folders
Criar pasta
curl --request POST \
--url https://api.lazydata.com.br/v1/storage/folders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"parent_id": "<string>"
}
'import requests
url = "https://api.lazydata.com.br/v1/storage/folders"
payload = {
"name": "<string>",
"parent_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', parent_id: '<string>'})
};
fetch('https://api.lazydata.com.br/v1/storage/folders', 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.lazydata.com.br/v1/storage/folders",
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>',
'parent_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.lazydata.com.br/v1/storage/folders"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"parent_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.lazydata.com.br/v1/storage/folders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"parent_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lazydata.com.br/v1/storage/folders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"parent_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "Pasta criada.",
"result": {
"id": "54d8a266-4e21-4a9a-9c15-b4b93bc11c6e",
"type": "folder",
"name": "Contratos",
"parent_id": null,
"created_at": "2026-06-22T11:55:00+00:00",
"updated_at": "2026-06-22T11:55:00+00:00"
}
}
{
"code": 400,
"message": "Nome da pasta inválido."
}
{
"code": 403,
"message": "Seu plano atual não possui armazenamento habilitado."
}
{
"code": 404,
"message": "Pasta não localizada."
}
{
"code": 409,
"message": "Já existe uma pasta com este nome."
}
Cria uma pasta no armazenamento da conta.
Use
parent_id para criar dentro de outra pasta. Omitir ou enviar null cria a pasta na raiz.
{
"code": 200,
"message": "Pasta criada.",
"result": {
"id": "54d8a266-4e21-4a9a-9c15-b4b93bc11c6e",
"type": "folder",
"name": "Contratos",
"parent_id": null,
"created_at": "2026-06-22T11:55:00+00:00",
"updated_at": "2026-06-22T11:55:00+00:00"
}
}
{
"code": 400,
"message": "Nome da pasta inválido."
}
{
"code": 403,
"message": "Seu plano atual não possui armazenamento habilitado."
}
{
"code": 404,
"message": "Pasta não localizada."
}
{
"code": 409,
"message": "Já existe uma pasta com este nome."
}
Corpo da requisição
string
required
Nome da pasta.
string
ID da pasta pai. Use
null para criar na raiz.Exemplo de corpo
{
"name": "Contratos",
"parent_id": null
}
Resposta
integer
required
Código da resposta da API.
string
required
Mensagem descritiva da resposta.
object
required
Metadados da pasta criada.
Regras importantes
- O plano da conta precisa ter armazenamento habilitado.
- Não é permitido criar duas pastas com o mesmo nome dentro da mesma pasta pai.
- O nome é normalizado, removendo espaços duplicados e caracteres de caminho.
⌘I

