GET /brands/:id_or_alias

GET /brands/{id_or_alias}

Returns a single brand

Path parameters

Responses

GET /brands/{id_or_alias}
curl \
 -X GET https://api.cosmily.com/api/v1/brands/{id_or_alias} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "id": 111,
    "alias": "pasjel",
    "title": "PasJel",
    "owner": {
      "id": 222,
      "username": "pasjel_cosmily",
      "user_type": "brand",
      "last_active": "2021-10-04T13:24:22.000Z"
    },
    "created_at": "2021-10-04T13:24:22.000Z",
    "updated_at": "2021-11-13T20:23:18.000Z"
  }
}
Response examples (200)
{
  "data": {
    "id": 111,
    "alias": "pasjel",
    "owner": {
      "id": 222,
      "username": "pasjel_cosmily",
      "user_type": "brand",
      "last_active": "2021-10-04T13:24:22.000Z"
    },
    "title": "PasJel",
    "created_at": "2021-10-04T13:24:22.000Z",
    "updated_at": "2021-11-13T20:23:18.000Z"
  }
}