GET /my/product_pitches

GET /my/product_pitches

Returns the product_pitches belonging to the logged in user

Query parameters

  • page integer

    requested page number

    Minimum value is 1. Default value is 1.

  • page_size integer

    requested page size

    Minimum value is 1, maximum value is 100. Default value is 12.

Responses

GET /my/product_pitches
curl \
 -X GET https://api.cosmily.com/api/v1/my/product_pitches \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": [
    {
      "id": 42,
      "product_id": 42,
      "user_id": 42,
      "effects": [
        {
          "effect": "string",
          "ingredient_ids": [
            42
          ]
        }
      ],
      "preferred_ingredients": [
        {
          "effects": [
            "string"
          ],
          "ingredient_id": 42
        }
      ],
      "affiliate_url": "string",
      "coupon_code": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "string"
  }
}
Response examples (200)
{
  "data": [
    {
      "id": 42,
      "product_id": 42,
      "user_id": 42,
      "effects": [
        {
          "effect": "string",
          "ingredient_ids": [
            42
          ]
        }
      ],
      "preferred_ingredients": [
        {
          "effects": [
            "string"
          ],
          "ingredient_id": 42
        }
      ],
      "affiliate_url": "string",
      "coupon_code": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "string"
  }
}