Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Get a subscription

Core action

This is a core action. All server implementations MUST support it.

Enables clients to fetch a single subscription resource by its globally unique guid.

GET /v1/subscriptions/{guid}

Request format

Clients MUST send a GET request to the canonical URI of a subscription resource, using the guid as the identifier.

Path parameters

ParameterTypeDescription
guidstringThe globally unique identifier (UUIDv5) of the subscription resource.

Headers

Clients MUST include the following headers:

  • Accept: application/vnd.api+json
GET /v1/subscriptions/ce510f4d-9046-5590-846e-58619ab8b353 HTTP/1.1
Accept: application/vnd.api+json

Server behavior

  • The server MUST return a 200 OK response with the subscription resource if it exists and is associated with the authenticated user.
  • If the subscription does not exist, the server MUST return a 404 Not Found error object.
  • The server MUST validate that the guid is a valid UUID format. If it is not, the server MUST return a 400 Bad Request.

Success response

If the subscription is found and accessible to the current user:

  • HTTP Status: 200 OK
  • Headers:
    • Content-Type: application/vnd.api+json

The response body MUST include:

  • A top-level data object containing the subscription resource.
  • A links.self pointing to the resource.
  • A links.unsubscribe pointing to the same resource with method: DELETE.
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json

{
  "jsonapi": { "version": "1.1" },
  "data": {
    "type": "subscription",
    "id": "ce510f4d-9046-5590-846e-58619ab8b353",
    "attributes": {
      "feed_url": "https://example.com/rss1",
      "user_subscribed_at": "2025-08-24T16:00:00Z"
    },
    "links": {
      "self": "/v1/subscriptions/ce510f4d-9046-5590-846e-58619ab8b353",
      "unsubscribe": {
        "href": "/v1/subscriptions/ce510f4d-9046-5590-846e-58619ab8b353",
        "method": "DELETE"
      }
    }
  }
}

Error responses

HTTP statusWhen it occurs
400 Bad RequestIf the provided guid is not a valid UUID.
404 Not FoundIf the subscription does not exist or is inaccessible.

See error response format for more information.