Transferências
GET https://transfer.tb.digital/api/transfers/
curl --request GET \
--url 'https://transfer.tb.digital/api/transfers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://transfer.tb.digital/api/transfers/' \
--header 'Authorization: Bearer {api_key}' \
Parâmetros | Detalhes | Descrição |
---|---|---|
page | Opcional Inteiro | O número da página que você deseja resultados. O padrão é 1 . |
results_per_page | Opcional Inteiro | Quantos resultados você deseja por página. Os valores permitidos são: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Padrão é 25 . |
{
"data": [
{
"id": 1,
"user_id": 1,
"project_id": 0,
"uploader_id": "f528764d624db129b32c21fbca0cb8d6",
"pixels_ids": [],
"files_ids": [
1,2,3
],
"name": "Example",
"description": "Example",
"type": "link",
"email_to": null,
"url": "example",
"settings": {
"password": null,
"file_encryption_is_enabled": false,
"file_preview_is_enabled": true,
"is_removed_branding": false,
"custom_css": "tester",
"custom_js": ""
},
"notifications": {
"download": []
},
"total_files": 1,
"total_size": 999999,
"pageviews": 1,
"downloads": 1,
"downloads_limit": 0,
"expiration_datetime": null,
"last_datetime": null,
"datetime": "2025-05-10 00:22:29"
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://transfer.tb.digital/api/transfers?&page=1",
"last": "https://transfer.tb.digital/api/transfers?&page=1",
"next": null,
"prev": null,
"self": "https://transfer.tb.digital/api/transfers?&page=1"
}
}
GET https://transfer.tb.digital/api/transfers/{transfer_id}
curl --request GET \
--url 'https://transfer.tb.digital/api/transfers/{transfer_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://transfer.tb.digital/api/transfers/{transfer_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"user_id": 1,
"project_id": 0,
"uploader_id": "f528764d624db129b32c21fbca0cb8d6",
"pixels_ids": [],
"files_ids": [
1,2,3
],
"name": "Example",
"description": "Example",
"type": "link",
"email_to": null,
"url": "example",
"settings": {
"password": null,
"file_encryption_is_enabled": false,
"file_preview_is_enabled": true,
"is_removed_branding": false,
"custom_css": "tester",
"custom_js": ""
},
"notifications": {
"download": []
},
"total_files": 1,
"total_size": 999999,
"pageviews": 1,
"downloads": 1,
"downloads_limit": 0,
"expiration_datetime": null,
"last_datetime": null,
"datetime": "2025-05-10 00:22:29"
}
}
POST https://transfer.tb.digital/transfer/create_api
Parâmetros | Detalhes | Descrição |
---|---|---|
uploaded_files | Obrigatório Matriz Inteiro | Array contendo UUIDs de todos os arquivos enviados para serem anexados a esta transferência. |
type | Opcional String | Valores permitidos: link , email |
email_to | Opcional String | Disponível quando: type = email |
name | Opcional String | - |
description | Opcional String | - |
url | Opcional String | - |
domain_id | Opcional Inteiro | - |
project_id | Opcional Inteiro | - |
pixels_ids | Opcional Matriz Inteiro | - |
download_notification_handlers_ids | Opcional Matriz Inteiro | - |
expiration_datetime | Opcional String | Y-m-d H:i:s |
downloads_limit | Opcional Inteiro | - |
password | Opcional String | - |
file_encryption_is_enabled | Opcional Boolean | - |
file_preview_is_enabled | Opcional Boolean | - |
is_removed_branding | Opcional Boolean | - |
custom_css | Opcional String | - |
custom_js | Opcional String | - |
curl --request POST \
--url 'https://transfer.tb.digital/transfer/create_api' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'uploaded_files[]=de09be56-639f-4213-863b-5ea1aa065970' \
--form 'name=Example name' \
--form 'description=Example description' \
--url 'https://transfer.tb.digital/transfer/create_api' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'uploaded_files[]=de09be56-639f-4213-863b-5ea1aa065970' \
--form 'name=Example name' \
--form 'description=Example description' \
{
"data": {
"id": 1,
"download_url": "https://transfer.tb.digital/transfer-redirect/1",
"view_url": "https://transfer.tb.digital/transfer/1",
}
}
POST https://transfer.tb.digital/api/transfers/{transfer_id}
Parâmetros | Detalhes | Descrição |
---|---|---|
name | Opcional String | - |
description | Opcional String | - |
url | Opcional String | - |
domain_id | Opcional Inteiro | - |
project_id | Opcional Inteiro | - |
pixels_ids | Opcional Matriz Inteiro | - |
download_notification_handlers_ids | Opcional Matriz Inteiro | - |
expiration_datetime | Opcional String | Y-m-d H:i:s |
downloads_limit | Opcional Inteiro | - |
file_preview_is_enabled | Opcional Boolean | - |
is_removed_branding | Opcional Boolean | - |
custom_css | Opcional String | - |
custom_js | Opcional String | - |
curl --request POST \
--url 'https://transfer.tb.digital/api/transfers/{transfer_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=transfer.com' \
--url 'https://transfer.tb.digital/api/transfers/{transfer_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=transfer.com' \
{
"data": {
"id": 1
}
}
DELETE https://transfer.tb.digital/api/transfers/{transfer_id}
curl --request DELETE \
--url 'https://transfer.tb.digital/api/transfers/{transfer_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://transfer.tb.digital/api/transfers/{transfer_id}' \
--header 'Authorization: Bearer {api_key}' \