{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-firebase/json-schema/google-firebase-topic-subscription-schema.json",
  "title": "TopicSubscription",
  "description": "Represents a subscription of a single app instance to a single FCM topic.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-firebase-fcm-projects-api-openapi.yml#/components/schemas/TopicSubscription",
  "type": "object",
  "properties": {
    "name": {
      "description": "Identifier. The resource name of the subscription. Format: projects/{project}/registrations/{registration}/topicSubscriptions/{topicSubscription} The {registration} part contains the registration ID (e.g., FID).",
      "type": "string"
    },
    "topicName": {
      "description": "Output only. The ID of the TopicSubscription, which is the topic name. This corresponds to the {topicSubscription} segment in the resource name. Topic names match the pattern of \"[a-zA-Z0-9-_.~%]{1,900}\".",
      "readOnly": true,
      "type": "string"
    },
    "createTime": {
      "description": "Output only. Time when the subscription was created.",
      "type": "string",
      "readOnly": true,
      "format": "google-datetime"
    }
  }
}