Query parameters

  • limit integer

    The maximum number of albums to retrieve

  • cursor string

    A cursor received from a previous request to retrieve the next page of results

Responses

  • 200 application/json

    Albums retrieved successfully

    Hide response attributes Show response attributes object
    • data array[object] Required
      Hide data attributes Show data attributes object
      • albumId string Required
      • name string

        Minimum length is 1, maximum length is 40.

      • ownerId string
      • shareUrl string

        A URL that can be shared with others to view the album. This URL is static and will always point to the album. You can safely cache this URL for future use.

      • numPhotos integer

        The number of photos in the album

      • The number of participants in the album (inclusive of the album owner)

    • cursor string

      A cursor to be used in subsequent requests to retrieve the next page of results. If this is {}, there are no more results to retrieve.

    • warnings array[string]
  • 400 application/json

    Invalid request. The request was malformed or missing required parameters.

    Hide response attribute Show response attribute object
GET /album/getAlbums
curl \
 -X GET https://public-api.joinswsh.com/album/getAlbums
Response examples (200)
{
  "data": [
    {
      "albumId": "22222222-2222-2222-2222-222222222222",
      "name": "My Album",
      "ownerId": "11111111-1111-1111-1111-111111111111",
      "shareUrl": "https://joinswsh.com/album/abcdef",
      "numPhotos": 5,
      "numParticipants": 2
    }
  ],
  "cursor": "string",
  "warnings": [
    "Example warning"
  ]
}
Response examples (400)
{
  "message": "Invalid request"
}