Listar coproduções
curl --request GET \
--url https://api.ephra.io/v1/co-productions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ephra.io/v1/co-productions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ephra.io/v1/co-productions', 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.ephra.io/v1/co-productions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.ephra.io/v1/co-productions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.ephra.io/v1/co-productions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ephra.io/v1/co-productions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "clx9d5m2p0004qz0a9j0k1l2m",
"productId": "clx8a2h4k0001qz0a1b2c3d4e",
"productName": "Curso de Tráfego Pago",
"producerCompanyId": "clx7z1f3j0000qz0a7d8e9f0g",
"producerCompanyName": "Ephra Educação Ltda",
"coProducerEmail": "joana.ribeiro@exemplo.com.br",
"coProducerCompanyId": null,
"contractPeriod": "2026-12-11T23:59:59.999Z",
"saleProducer": true,
"saleAffiliate": false,
"commissionProducerPercentage": 30,
"status": "pending",
"createdAt": "2026-09-12T09:15:00.000Z",
"updatedAt": "2026-09-12T09:15:00.000Z",
"approvedAt": null,
"rejectedAt": null,
"canceledAt": null
}
],
"pagination": {
"page": 1,
"pageSize": 10,
"total": 1,
"totalPages": 1
}
}{
"success": false,
"message": "Token inválido ou expirado"
}{
"success": false,
"message": "name: Nome é obrigatório"
}{
"success": false,
"message": "Muitas requisições. Tente novamente em breve."
}{
"success": false,
"message": "Erro interno do servidor"
}Crescimento
Listar coproduções
Lista as coproduções da empresa autenticada dos dois lados: os convites que ela enviou como produtora e os que recebeu como coprodutora, do mais recente para o mais antigo. Filtre por status para separar o que ainda espera resposta do que já está valendo.
GET
/
v1
/
co-productions
Listar coproduções
curl --request GET \
--url https://api.ephra.io/v1/co-productions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ephra.io/v1/co-productions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ephra.io/v1/co-productions', 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.ephra.io/v1/co-productions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.ephra.io/v1/co-productions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.ephra.io/v1/co-productions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ephra.io/v1/co-productions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "clx9d5m2p0004qz0a9j0k1l2m",
"productId": "clx8a2h4k0001qz0a1b2c3d4e",
"productName": "Curso de Tráfego Pago",
"producerCompanyId": "clx7z1f3j0000qz0a7d8e9f0g",
"producerCompanyName": "Ephra Educação Ltda",
"coProducerEmail": "joana.ribeiro@exemplo.com.br",
"coProducerCompanyId": null,
"contractPeriod": "2026-12-11T23:59:59.999Z",
"saleProducer": true,
"saleAffiliate": false,
"commissionProducerPercentage": 30,
"status": "pending",
"createdAt": "2026-09-12T09:15:00.000Z",
"updatedAt": "2026-09-12T09:15:00.000Z",
"approvedAt": null,
"rejectedAt": null,
"canceledAt": null
}
],
"pagination": {
"page": 1,
"pageSize": 10,
"total": 1,
"totalPages": 1
}
}{
"success": false,
"message": "Token inválido ou expirado"
}{
"success": false,
"message": "name: Nome é obrigatório"
}{
"success": false,
"message": "Muitas requisições. Tente novamente em breve."
}{
"success": false,
"message": "Erro interno do servidor"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Página desejada, começando em 1.
Required range:
x >= 1Quantidade de itens por página (máximo 100).
Required range:
1 <= x <= 100Filtra por situação da coprodução.
Available options:
pending, approved, rejected, canceled, ended, expired ⌘I
