---
title: "publication"
description: "Retrieve the specified Publication object by `ID`."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/apps/queries/publication'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/apps/queries/publication.md'
---
# publication

Retrieve the specified Publication object by `ID`.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Query

## Type Signature

`Publication`

## Arguments

* `id`

  [ID!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The `ID` of the Publication to retrieve.

## Returns

* `catalog`

  [Catalog](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/interfaces/catalog.md)

  The catalog associated with the publication.

* `id`

  [ID!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  A globally-unique ID.

* `supportsFuturePublishing`

  [Boolean!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/boolean.md)

  Whether the publication supports future publishing.

## Code Example

```graphql
 {
	publication(id ) 
		 {
			# Publication fields
		}
}
```

## Examples

### Query Publication by ID

Query Publication by ID

**Request:**

```json
query Publication {
    publication(id: "gid://shopline/Publication/21230257") {
        supportsFuturePublishing
        id
        catalog {
            id
            title
            status
            ... on AppCatalog {
                id
                title
                status
                apps(first: 10) {
                    nodes {
                        appKey
                        id
                        title
                        embedded
                    }
                }
            }
        }
    }
}

```

**Response:**

```json
{
  "data": {
    "data": {
      "publication": {
        "supportsFuturePublishing": false,
        "catalog": {
          "id": "gid://shopline/Catalog/21230258",
          "status": "ACTIVE",
          "title": "Channel Catalog 21230257",
          "apps": {
            "nodes": [
              {
                "embedded": false,
                "id": "gid://shopline/App/65095",
                "title": "Facebook",
                "appKey": "111afe2f9baceb93004af92b1276582619f1db26"
              }
            ]
          }
        },
        "id": "gid://shopline/Publication/21230257"
      }
    }
  }
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

