GET /my/routine_requests

GET /my/routine_requests

Returns the Routine Requests created by 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.

  • status string

    filter by Routine Request status

Responses

GET /my/routine_requests
curl \
 -X GET https://api.cosmily.com/api/v1/my/routine_requests \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": [
    {
      "id": 42,
      "user_id": 42,
      "routine_id": 42,
      "status": "string",
      "routine_title": "string",
      "routine_type": "string",
      "request": {
        "products": [
          "string"
        ]
      },
      "created_at": "string",
      "updated_at": "string"
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "string"
  }
}
Response examples (200)
{
  "data": [
    {
      "id": 42,
      "user_id": 42,
      "routine_id": 42,
      "status": "string",
      "routine_title": "string",
      "routine_type": "string",
      "request": {
        "products": [
          "string"
        ]
      },
      "created_at": "string",
      "updated_at": "string"
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "string"
  }
}