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

  • 200

    successful operation

    Hide response attributes Show response attributes object
    • data array[object]
      Hide data attributes Show data attributes array[object]
      • id integer(int32)
      • product_id integer
      • user_id integer
      • effects array[object]
        Hide effects attributes Show effects attributes array[object]
        • effect string
        • ingredient_ids array[integer]
      • preferred_ingredients array[object]
        Hide preferred_ingredients attributes Show preferred_ingredients attributes array[object]
        • effects array[string]
        • ingredient_id integer
      • affiliate_url string
      • coupon_code string
      • created_at string(DateTime)
      • updated_at string(DateTime)
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 403

    Authorization forbidden

  • 500

    Server Error

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"
  }
}