Transferts

GET https://transfer.g-hyksos.com/api/transfers/
curl --request GET \
--url 'https://transfer.g-hyksos.com/api/transfers/' \
--header 'Authorization: Bearer {api_key}' \
Paramètres Détails Description
page Facultatif Entier Le numéro de page à partir duquel vous souhaitez obtenir des résultats. Par défaut à 1.
results_per_page Facultatif Entier Combien de résultats souhaitez-vous par page. Les valeurs autorisées sont : 10 , 25 , 50 , 100 , 250 , 500 , 1000. La valeur par défaut est 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": "2026-01-15 12:42:22",
        },
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://transfer.g-hyksos.com/api/transfers?page=1",
        "last": "https://transfer.g-hyksos.com/api/transfers?page=1",
        "next": null,
        "prev": null,
        "self": "https://transfer.g-hyksos.com/api/transfers?page=1"
    }
}
GET https://transfer.g-hyksos.com/api/transfers/{transfer_id}
curl --request GET \
--url 'https://transfer.g-hyksos.com/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": "2026-01-15 12:42:22",
    }
}
POST https://transfer.g-hyksos.com/transfer/create_api
Paramètres Détails Description
uploaded_files Requis Tableau Entier Tableau contenant les UUID pour tous les fichiers téléchargés à joindre à ce transfert.
type Facultatif Chaîne Valeurs autorisées : link , email
email_to Facultatif Chaîne Disponible quand : type = email
name Facultatif Chaîne -
description Facultatif Chaîne -
url Facultatif Chaîne -
domain_id Facultatif Entier -
project_id Facultatif Entier -
pixels_ids Facultatif Tableau Entier -
download_notification_handlers_ids Facultatif Tableau Entier -
expiration_datetime Facultatif Chaîne Y-m-d H:i:s
downloads_limit Facultatif Entier -
password Facultatif Chaîne -
file_encryption_is_enabled Facultatif Booléen -
file_preview_is_enabled Facultatif Booléen -
gallery_file_preview_is_enabled Facultatif Booléen -
is_removed_branding Facultatif Booléen -
custom_css Facultatif Chaîne -
custom_js Facultatif Chaîne -
curl --request POST \
--url 'https://transfer.g-hyksos.com/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.g-hyksos.com/transfer-redirect/1",
        "view_url": "https://transfer.g-hyksos.com/transfer/1",
    }
}
POST https://transfer.g-hyksos.com/api/transfers/{transfer_id}
Paramètres Détails Description
name Facultatif Chaîne -
description Facultatif Chaîne -
url Facultatif Chaîne -
domain_id Facultatif Entier -
project_id Facultatif Entier -
pixels_ids Facultatif Tableau Entier -
download_notification_handlers_ids Facultatif Tableau Entier -
expiration_datetime Facultatif Chaîne Y-m-d H:i:s
downloads_limit Facultatif Entier -
file_preview_is_enabled Facultatif Booléen -
gallery_file_preview_is_enabled Facultatif Booléen -
is_removed_branding Facultatif Booléen -
custom_css Facultatif Chaîne -
custom_js Facultatif Chaîne -
curl --request POST \
--url 'https://transfer.g-hyksos.com/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.g-hyksos.com/api/transfers/{transfer_id}
curl --request DELETE \
--url 'https://transfer.g-hyksos.com/api/transfers/{transfer_id}' \
--header 'Authorization: Bearer {api_key}' \