Skip to main content
GET
/
bureau
/
api
/
v1
/
datasets-package
Liste todos os Pacotes de Datasets
curl --request GET \
  --url https://api.valid.com/bureau/api/v1/datasets-package \
  --header 'x-api-key: <api-key>'
import requests

url = "https://api.valid.com/bureau/api/v1/datasets-package"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://api.valid.com/bureau/api/v1/datasets-package', 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.valid.com/bureau/api/v1/datasets-package",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-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"
	"net/http"
	"io"
)

func main() {

	url := "https://api.valid.com/bureau/api/v1/datasets-package"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<api-key>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.valid.com/bureau/api/v1/datasets-package")
  .header("x-api-key", "<api-key>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.valid.com/bureau/api/v1/datasets-package")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "id": "<string>",
  "name": "<string>",
  "group": "<string>",
  "datasets": [
    "<string>"
  ],
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "code": "<string>",
  "message": "<string>",
  "details": [
    {
      "field": "<string>",
      "message": "<string>"
    }
  ]
}

Response

Retorna um array de pacotes de datasets.
id
string
ID do pacote de datasetsFormato: UUIDExemplo: 05be75cc-8f8a-414a-891f-434aa9b4e7a5
name
string
Nome do pacote de datasetsExemplo: Pacote de datasets
group
string
Grupo do pacote de datasetsExemplo: PF
datasets
string[]
Lista de datasets do pacoteFormato: Array de stringsExemplo: ["basic", "addresses"]
createdAt
string
Data de criaçãoExemplo: 2023-01-01T12:00:00Z
updatedAt
string
Data de atualizaçãoExemplo: 2023-01-01T12:00:00Z

Respostas de Erro

code
string
Código do erro que categoriza o tipo de erroExemplo: VALIDATION_ERROR
message
string
Mensagem de erroExemplo: The request is invalid
details
array
Lista contendo detalhes do erro (opcional)