curl
curl -X POST 'https://api.velan.app/v1/developer/events/106ad682-b5d1-4422-8c41-fa8fb5229791/tickets/search' \
-H 'Authorization: Bearer $VELAN_KEY' \
-H 'Content-Type: application/json' \
-d '{"query": "maria"}'import requests
url = "https://api.velan.app/v1/developer/events/{product_code}/tickets/search"
payload = { "query": "maria" }
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({query: 'maria'})
};
fetch('https://api.velan.app/v1/developer/events/{product_code}/tickets/search', 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.velan.app/v1/developer/events/{product_code}/tickets/search",
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([
'query' => 'maria'
]),
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.velan.app/v1/developer/events/{product_code}/tickets/search"
payload := strings.NewReader("{\n \"query\": \"maria\"\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.velan.app/v1/developer/events/{product_code}/tickets/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"maria\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.velan.app/v1/developer/events/{product_code}/tickets/search")
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 \"query\": \"maria\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"attendance": {
"by_lot": [
{
"cancelled": 0,
"checked_in": 0,
"lot_id": 1,
"name": "Inteira",
"not_checked_in": 1,
"pending": 0
}
],
"cancelled": 0,
"checked_in": 0,
"checkin_rate": 0,
"not_checked_in": 1,
"pending": 0,
"valid_tickets": 1
},
"capacity": null,
"city": null,
"ends_at": null,
"event_url": "https://pay.velan.app/event/jxb7x34h",
"format": "in_person",
"offset": 0,
"product": {
"code": "106ad682-b5d1-4422-8c41-fa8fb5229791",
"is_active": true,
"name": "Show de Verão"
},
"starts_at": "2026-12-22T03:14:41.523777+00:00",
"tickets": [
{
"attendee": {
"email": "maria@exemplo.com",
"name": "Maria Lima"
},
"buyer": {
"email": "joao@exemplo.com",
"name": "João Silva"
},
"cancelled_at": null,
"checked_in_at": null,
"code": "bbd7ff1f-5fde-483b-b151-33850234aa23",
"id": 1,
"issued_at": null,
"lot": {
"id": 1,
"name": "Inteira"
},
"order_code": "d4c5d8e3-e552-4cc7-843f-d3ad99e369a4",
"order_status": "paid",
"short_code": "TDSO98",
"status": "issued",
"ticket_url": "https://pay.velan.app/event/ingresso/bbd7ff1f-5fde-483b-b151-33850234aa23",
"unit_price": "100.00"
}
],
"total": 1,
"venue_name": null
}
}{
"error": {
"type": "validation_error",
"message": "Campos não aceitos nesta rota.",
"fields": {
"confirmm": "Campo desconhecido."
}
}
}{
"error": {
"type": "authentication_error",
"message": "Envie Authorization: Bearer <chave de API>."
}
}{
"error": {
"type": "permission_error",
"message": "Esta chave não tem permissão de escrita em 'webhooks'. Crie uma chave com essa permissão."
}
}{
"error": {
"type": "not_found",
"message": "Assinatura não encontrada."
}
}{
"error": {
"type": "unprocessable",
"message": "Descreva o motivo com pelo menos 5 caracteres."
}
}{
"error": {
"type": "rate_limited",
"message": "Limite de 30 alterações por minuto atingido."
}
}Eventos
Buscar ingressos (nome/e-mail no corpo)
Mesma listagem de GET /events/{product_code}/tickets, com a busca por nome ou e-mail (query) no corpo.
Permissão: leitura (qualquer chave).
POST
/
events
/
{product_code}
/
tickets
/
search
curl
curl -X POST 'https://api.velan.app/v1/developer/events/106ad682-b5d1-4422-8c41-fa8fb5229791/tickets/search' \
-H 'Authorization: Bearer $VELAN_KEY' \
-H 'Content-Type: application/json' \
-d '{"query": "maria"}'import requests
url = "https://api.velan.app/v1/developer/events/{product_code}/tickets/search"
payload = { "query": "maria" }
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({query: 'maria'})
};
fetch('https://api.velan.app/v1/developer/events/{product_code}/tickets/search', 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.velan.app/v1/developer/events/{product_code}/tickets/search",
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([
'query' => 'maria'
]),
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.velan.app/v1/developer/events/{product_code}/tickets/search"
payload := strings.NewReader("{\n \"query\": \"maria\"\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.velan.app/v1/developer/events/{product_code}/tickets/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"maria\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.velan.app/v1/developer/events/{product_code}/tickets/search")
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 \"query\": \"maria\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"attendance": {
"by_lot": [
{
"cancelled": 0,
"checked_in": 0,
"lot_id": 1,
"name": "Inteira",
"not_checked_in": 1,
"pending": 0
}
],
"cancelled": 0,
"checked_in": 0,
"checkin_rate": 0,
"not_checked_in": 1,
"pending": 0,
"valid_tickets": 1
},
"capacity": null,
"city": null,
"ends_at": null,
"event_url": "https://pay.velan.app/event/jxb7x34h",
"format": "in_person",
"offset": 0,
"product": {
"code": "106ad682-b5d1-4422-8c41-fa8fb5229791",
"is_active": true,
"name": "Show de Verão"
},
"starts_at": "2026-12-22T03:14:41.523777+00:00",
"tickets": [
{
"attendee": {
"email": "maria@exemplo.com",
"name": "Maria Lima"
},
"buyer": {
"email": "joao@exemplo.com",
"name": "João Silva"
},
"cancelled_at": null,
"checked_in_at": null,
"code": "bbd7ff1f-5fde-483b-b151-33850234aa23",
"id": 1,
"issued_at": null,
"lot": {
"id": 1,
"name": "Inteira"
},
"order_code": "d4c5d8e3-e552-4cc7-843f-d3ad99e369a4",
"order_status": "paid",
"short_code": "TDSO98",
"status": "issued",
"ticket_url": "https://pay.velan.app/event/ingresso/bbd7ff1f-5fde-483b-b151-33850234aa23",
"unit_price": "100.00"
}
],
"total": 1,
"venue_name": null
}
}{
"error": {
"type": "validation_error",
"message": "Campos não aceitos nesta rota.",
"fields": {
"confirmm": "Campo desconhecido."
}
}
}{
"error": {
"type": "authentication_error",
"message": "Envie Authorization: Bearer <chave de API>."
}
}{
"error": {
"type": "permission_error",
"message": "Esta chave não tem permissão de escrita em 'webhooks'. Crie uma chave com essa permissão."
}
}{
"error": {
"type": "not_found",
"message": "Assinatura não encontrada."
}
}{
"error": {
"type": "unprocessable",
"message": "Descreva o motivo com pelo menos 5 caracteres."
}
}{
"error": {
"type": "rate_limited",
"message": "Limite de 30 alterações por minuto atingido."
}
}Authorizations
Headers
Path Parameters
Body
application/json
