Retrieve a specific album

GET /album/getAlbum

Query parameters

  • albumId string Required

    ID of the album to retrieve

Responses

  • 200 application/json

    Album retrieved successfully

    Hide response attributes Show response attributes object
    • data object Required
      Hide data attributes Show data attributes object
      • albumId string Required
      • name string
      • 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.

    • warnings array[string]
  • 400 application/json

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

    Hide response attribute Show response attribute object
  • Album not found

GET /album/getAlbum
curl \
 -X GET https://public-api.joinswsh.com/album/getAlbum?albumId=11111111-1111-1111-1111-111111111111 \
 -H "x-api-key: $API_KEY"
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"
  },
  "warnings": [
    "Example warning"
  ]
}
Response examples (400)
{
  "message": "Invalid request"
}