This page describes API endpoints for viewing, editing, and creating URLs for Offers.

View URLs

GET /backend/open-api/v1/users/offers/{offer_id}/urls/{url_id}

View all URLs of a selected offer along with their properties.

Headers

Name Value
Authorization Bearer <token>

Path parameters

Name Type Description Required
offer_id Integer ID of an offer. ☑️
url_id Integer ID of a URL.
Add to view details only for a specific URL.

Response

{
    "data": [
        {
            "id": 370,
            "name": "Amazon link",
            "preview_url": "",
            "url": "<https://amazon.com/goods/bikes>",
            "default": true,
            "source": "Other",
            "privacy": 0,
            "free_parameters": "[]",
            "status": 1
        },
        {
            "id": 371,
            "name": "Azure",
            "preview_url": "",
            "url": "<https://azure.microsoft.com/en-en/solutions/knowledge-mining/>",
            "default": false,
            "source": "Other",
            "privacy": 1,
            "free_parameters": "[]",
            "status": 1
        }
    ],
    "total": 2,
    "per_page": 200,
    "page": 1,
    "pages": 1,
    "source": "471"
}

Create a URL

POST /backend/open-api/v1/users/offers/{offer_id}/urls

Create a new URL for a selected Offer.

Headers

Name Value
Content-Type application/json
Authorization Bearer <token>