Event subscription authentication

To create, query, or delete an event subscription, your Workfront user needs the following:

  • An access level of “System Administrator” is required to use Event Subscriptions.

  • A sessionID header is required to use the Event Subscriptions API

    For more information, see Authentication in API Basics.

Forming the subscription resource

The subscription resource contains the following fields.

  • objId (optional)

    • String - The ID of the object of the specified objCode for which events are fired. If this field is not specified, the user receives events for all objects of the specified type.
  • objCode (required)

    • String - The objCode of the object being subscribed to changes. The possible values for objCode are listed in the table below.

      Object
      objCode
      Approval
      approval
      Approval Stage
      approval_stage
      Approval Stage Participant
      approval_stage_participant
      Assignment
      ASSGN
      Company
      CMPY
      Dashboard
      PTLTAB
      Document
      DOCU
      Expense
      EXPNS
      Field
      FIELD
      Hour
      HOUR
      Issue
      OPTASK
      Note
      NOTE
      Portfolio
      PORT
      Program
      PRGM
      Project
      PROJ
      Record
      RECORD
      Record Type
      RECORD_TYPE
      Report
      PTLSEC
      Task
      TASK
      Template
      TMPL
      Timesheet
      TSHET
      User
      USER
      Workspace
      WORKSPACE
  • eventType (required)

    • String - A value that represents the type of event to which the object is subscribed. The available event types include:

      • CREATE
      • DELETE
      • UPDATE
  • url (required)

    • String - The URL of the endpoint to which subscription event payloads are sent via HTTP.
  • authToken (required)

    • String - The OAuth2 bearer token used to authenticate with the URL specified in the “URL” field.