Back to Content Management API

articleByHandle

Returns an article by hande in a draft or published state.

Arguments

  • Name
    handle
    Type
    String!
    Description

    The handle of the article.

  • Name
    version
    Type
    Version
    Description

    The state of the article you want to retrieve.

    • To get the latest content use CURRENT.
    • To get the latest published content use PUBLISHED

Returns

  • Name
    Article*
    Type
    Article
    Description

    Any requested field from the Article object.

Request

POST
/graphql
import ApiClient from '@example/protocol-api'

const client = new ApiClient(token)

await client.contacts.list()

Response

{
  "has_more": false,
  "data": [
    {
      "id": "WAz8eIbvDR60rouK",
      "username": "FrankMcCallister",
      "phone_number": "1-800-759-3000",
      "avatar_url": "https://assets.protocol.chat/avatars/frank.jpg",
      "display_name": null,
      "conversation_id": "xgQQXg3hrtjh7AvZ",
      "last_active_at": 705103200,
      "created_at": 692233200
    },
    {
      "id": "hSIhXBhNe8X1d8Et"
      // ...
    }
  ]
}

Was this page helpful?