Staffbase
App · 23 actions
Publish news posts, read comments and manage people on your Staffbase employee app.
Actions
| Action | What it does |
|---|---|
| Create post | Write a news post in a channel, as a draft or published. |
| Delete post | Delete a news post. |
| Delete user | Delete a person from your Staffbase platform. |
| Get channel | Get one news channel. |
| Get comment | Get one comment. |
| Get page | Get one page with its content. |
| Get post | Get one news post. |
| Get space | Get one space. |
| Get user | Get one person's profile. |
| Invite user | Add a person to Staffbase and, if you choose, email them an invitation. |
| List channel posts | List the posts in one news channel. |
| List channels | List the news channels the API token can read. |
| List comments | List comments on news posts, newest or last changed first. |
| List pages | List the pages in your spaces. |
| List post acknowledgements | List who has acknowledged a post. |
| List posts | List the news posts the API token can read, newest first if you choose. |
| List spaces | List the spaces on your platform. |
| List users | List the people on your Staffbase platform. |
| Resend post notifications | Notify people about a published post again. |
| Send notification | Send people or groups a notification that opens a page of your platform. |
| Send password reset email | Email a person a link to reset their password. |
| Update post | Change a news post's text, image, or publish it. |
| Update user | Change a person's profile fields or status. |
Create post
Write a news post in a channel, as a draft or published.
Inputs
- Channel
channel_idtextRequired - The news channel to post in. Pick one, or use a channel ID from List channels.
- Title
titletextRequired - The post's title.
- Teaser
teasertext - A short plain-text summary, shown in the feed and in notifications.
- Content
contenttext - The body of the post. It can contain HTML.
- Image URL
imagetext - The address of an image to use as the post's main picture.
- External ID
external_idtext - Your own ID for the post, to find it again later. Letters, numbers, - and _ only.
- Publish
publishedtext - Choose Publish now to publish it at once. Leave empty to save it as a draft.One of:
now(Publish now). - Planned for
planneddate and time - The date and time the post is planned for, if it is still a draft.
- Notify by
notification_channelslist - Send a notification about the post this way. Leave empty to send none.One or more of:
email,push(Push notification).
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"campaignId": "602bce34e11096566faf4263",
"channelID": "5791e3ffd4c61f21c3df8b92",
"contents": {
"en_US": {
"content": "<p>Content can contain HTML.</p>",
"image": {
"original": {
"height": 1069,
"size": 753886,
"url": "https://cdn.eyo.net/production/image/upload/v1618901827/ocean.jpeg",
"width": 1900
}
},
"teaser": "Teaser is text only.",
"title": "The Title"
}
},
"created": "2021-04-19T09:14:39.171Z",
"externalID": "your-unique-external-id",
"id": "5791e3ffd4c61f21c3df8b93",
"planned": "2021-04-19T09:14:39.171Z",
"published": "2021-04-19T09:14:39.171Z",
"updated": "2021-04-19T09:14:39.171Z"
}
}Delete post
Delete a news post.
Inputs
- Post
post_idtextRequired - The post's ID, or the external ID you gave it.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {}
}Delete user
Delete a person from your Staffbase platform.
Inputs
- User
usertextRequired - The user's ID, or their external ID.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {}
}Get channel
Get one news channel.
Inputs
- Channel
channel_idtextRequired - The news channel. Pick one, or use a channel ID from List channels.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"config": {
"localization": {
"en_US": {
"title": "Kickstart your Employee App"
}
}
},
"created": "2016-12-02T09:31:39.775Z",
"id": "5791e3ffd4c61f21c3df8b92",
"published": "2021-04-19T09:14:39.157Z",
"updated": "2021-04-19T09:14:39.157Z"
}
}Get comment
Get one comment.
Inputs
- Comment
comment_idtextRequired - The comment's ID.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"author": {
"entityType": "user",
"firstName": "First",
"id": "5f031fb242ed490657458835",
"lastName": "Second"
},
"authorID": "5f031fb242ed490657458835",
"created": "2020-11-26T10:14:48.571Z",
"entityType": "comment",
"id": "5fbf80182e01e361c25f8f96",
"installationID": "5f031fb242ed490657458839",
"parentID": "5f980d6d7758d73fd80ed8ec",
"parentType": "post",
"published": true,
"rights": [
"DELETE",
"MODIFY",
"UNPUBLISH"
],
"rootID": "5f980d6d7758d73fd80ed8ec",
"text": "@First Second mentioned",
"updated": "2020-11-26T10:14:48.947Z"
}
}Get page
Get one page with its content.
Inputs
- Page
page_idtextRequired - The page's ID.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"contents": {
"en_US": {
"content": "<p>Page Content</p>",
"title": "Safety rules"
}
},
"createdAt": "2016-07-22 09:14:39.171000+00:00",
"id": "5791e3ffd4c61f21c3df8b93",
"isOutdated": false,
"ownerId": "5f031fb242ed490657458835",
"publishedAt": "2016-07-22 11:14:39.171000+00:00",
"readers": {
"branchAccess": false,
"groupIds": [
"5f031fb242ed490657458832"
],
"userIds": [
"5f031fb242ed490657458831"
]
},
"spaceId": "5791e3ffd4c61f21c3df8b92",
"updatedAt": "2016-07-22 11:14:39.171000+00:00"
}
}Get post
Get one news post.
Inputs
- Post
post_idtextRequired - The post's ID, or the external ID you gave it.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"campaignId": "602bce34e11096566faf4263",
"channelID": "5791e3ffd4c61f21c3df8b92",
"contents": {
"en_US": {
"content": "<p>Content can contain HTML.</p>",
"image": {
"original": {
"height": 1069,
"size": 753886,
"url": "https://cdn.eyo.net/production/image/upload/v1618901827/ocean.jpeg",
"width": 1900
}
},
"teaser": "Teaser is text only.",
"title": "The Title"
}
},
"created": "2021-04-19T09:14:39.171Z",
"externalID": "your-unique-external-id",
"id": "5791e3ffd4c61f21c3df8b93",
"planned": "2021-04-19T09:14:39.171Z",
"published": "2021-04-19T09:14:39.171Z",
"updated": "2021-04-19T09:14:39.171Z"
}
}Get space
Get one space.
Inputs
- Space
space_idtextRequired - The space. Pick one, or use a space ID from List spaces.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"accessorIDs": [
"5f031fb242ed490657458832"
],
"adminIDs": [
"5f031fb242ed490657458831"
],
"branchID": "5afac5790a09a2503e8c7103",
"childIds": [
"5791e3ffd4c61f21c3df8b94"
],
"id": "5791e3ffd4c61f21c3df8b92",
"name": "Marketing",
"parentId": "5791e3ffd4c61f21c3df8b90",
"rootMenuNodeId": "5791e3ffd4c61f21c3df8b95",
"sections": [
"pages"
]
}
}Get user
Get one person's profile.
Inputs
- User
usertextRequired - The user's ID, or their external ID.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"activated": "2021-07-28T06:49:15.462Z",
"config": {
"locale": "en_US"
},
"created": "2021-07-22T09:14:39.146Z",
"department": "Development & Research",
"emails": [
{
"primary": true,
"providerID": "staffbase",
"value": "john@doe.com"
}
],
"externalID": "jd123",
"firstName": "John",
"groupIDs": [
"c69e7b20e6504345aa4b4938"
],
"id": "20e6504df8a90a4345aa4b49",
"lastName": "Doe",
"location": "Chemnitz",
"phoneNumber": "+491234567890",
"position": "Developer",
"publicEmailAddress": "hi@example.com",
"role": {
"type": "editor"
},
"status": "activated",
"updated": "2021-08-16T15:15:45.668"
}
}Invite user
Add a person to Staffbase and, if you choose, email them an invitation.
Inputs
- Email
emailtextRequired - Their email address. It must not belong to another user.
- First name
first_nametext - Their first name.
- Last name
last_nametext - Their last name.
- External ID
external_idtext - Your own ID for them, such as an employee number. It must be unique.
- Department
departmenttext - Their department.
- Job title
positiontext - Their job title.
- Location
locationtext - Their location.
- Phone number
phone_numbertext - Their phone number.
- Send invitation
send_mailtrue/false - Email them an invitation. Staffbase sends one unless you turn this off.
- Invitation message
invite_messagetext - Your own message to add to the invitation email.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"created": "2021-07-22T09:14:39.146Z",
"emails": [
{
"primary": true,
"providerID": "staffbase",
"value": "john@doe.com"
}
],
"externalID": "jd123",
"firstName": "John",
"id": "20e6504df8a90a4345aa4b49",
"lastName": "Doe",
"status": "activated",
"updated": "2021-08-16T15:15:45.668"
}
}List channel posts
List the posts in one news channel.
Inputs
- Channel
channel_idtextRequired - The news channel. Pick one, or use a channel ID from List channels.
- Page size
limitnumber - How many to return, up to 100. Leave empty for 10.From 1 to 100.
- Skip
offsetnumber - How many to skip, for the next page. Leave empty to start at the first.At least 0.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"data": [
{
"campaignId": "602bce34e11096566faf4263",
"channelID": "5791e3ffd4c61f21c3df8b92",
"contents": {
"en_US": {
"content": "<p>Content can contain HTML.</p>",
"image": {
"original": {
"height": 1069,
"size": 753886,
"url": "https://cdn.eyo.net/production/image/upload/v1618901827/ocean.jpeg",
"width": 1900
}
},
"teaser": "Teaser is text only.",
"title": "The Title"
}
},
"created": "2021-04-19T09:14:39.171Z",
"externalID": "your-unique-external-id",
"id": "5791e3ffd4c61f21c3df8b93",
"planned": "2021-04-19T09:14:39.171Z",
"published": "2021-04-19T09:14:39.171Z",
"updated": "2021-04-19T09:14:39.171Z"
}
],
"limit": 10,
"offset": 0,
"total": 2
}
}List channels
List the news channels the API token can read.
Inputs
- Name contains
querytext - Only channels whose name contains this.
- Page size
limitnumber - How many to return, up to 100. Leave empty for 100.From 1 to 100.
- Skip
offsetnumber - How many to skip, for the next page. Leave empty to start at the first.At least 0.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"data": [
{
"config": {
"localization": {
"en_US": {
"title": "Kickstart your Employee App"
}
}
},
"created": "2016-12-02T09:31:39.775Z",
"id": "5791e3ffd4c61f21c3df8b92",
"published": "2021-04-19T09:14:39.157Z",
"updated": "2021-04-19T09:14:39.157Z"
}
],
"limit": 10,
"offset": 0,
"total": 2
}
}List comments
List comments on news posts, newest or last changed first.
Inputs
- Filter
filtertext - Only comments that match, such as created gt "2026-01-01T00:00:00Z". Filters work on created and updated.
- Sort by
sorttext - The order. Leave empty for last changed first.One of:
updated_DESC(Last changed first),updated_ASC(Least recently changed first),created_DESC(Newest first),created_ASC(Oldest first). - Text format
formattext - Rich keeps the comment's HTML; plain removes it.One of:
rich,plain(Plain text). - Include unpublished
managetrue/false - Also list unpublished comments, if the token may manage comments.
- Page size
limitnumber - How many to return, up to 100. Leave empty for 100.From 1 to 100.
- Skip
offsetnumber - How many to skip, for the next page. Leave empty to start at the first.At least 0.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"data": [
{
"author": {
"entityType": "user",
"firstName": "First",
"id": "5f031fb242ed490657458835",
"lastName": "Second"
},
"authorID": "5f031fb242ed490657458835",
"created": "2020-11-26T10:14:48.571Z",
"entityType": "comment",
"id": "5fbf80182e01e361c25f8f96",
"installationID": "5f031fb242ed490657458839",
"parentID": "5f980d6d7758d73fd80ed8ec",
"parentType": "post",
"published": true,
"rights": [
"DELETE",
"MODIFY",
"UNPUBLISH"
],
"rootID": "5f980d6d7758d73fd80ed8ec",
"text": "@First Second mentioned",
"updated": "2020-11-26T10:14:48.947Z"
}
],
"limit": 10,
"links": {
"self": {
"href": "https://app.staffbase.com/api/comments?limit=100",
"method": "GET"
}
},
"offset": 0,
"total": 2
}
}List pages
List the pages in your spaces.
Inputs
- Spaces
space_idslist - Only pages in these spaces. Leave empty for all.
- Status
statustext - Only drafts or only published pages. Leave empty for both.One of:
DRAFT,PUBLISHED. - Sort by
order_bytext - The order.One of:
CREATED_DESC(Newest first),CREATED_ASC(Oldest first),UPDATED_DESC(Last changed first),UPDATED_ASC(Least recently changed first),PUBLISHED_DESC(Last published first),PUBLISHED_ASC(First published first),TITLE_ASC(Title A to Z),TITLE_DESC(Title Z to A). - Page size
limitnumber - How many to return, up to 100. Leave empty for 100.From 1 to 100.
- Next page
cursortext - The cursor from the last page, to get the next one.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"cursor": "Z29vZCB0byBrbm93_NWI2MmMzNDVlYTJkMTVkN2E3YmRhMmFm",
"data": [
{
"contents": {
"en_US": {
"content": "<p>Page Content</p>",
"title": "Safety rules"
}
},
"createdAt": "2016-07-22 09:14:39.171000+00:00",
"id": "5791e3ffd4c61f21c3df8b93",
"isOutdated": false,
"ownerId": "5f031fb242ed490657458835",
"publishedAt": "2016-07-22 11:14:39.171000+00:00",
"readers": {
"branchAccess": false,
"groupIds": [
"5f031fb242ed490657458832"
],
"userIds": [
"5f031fb242ed490657458831"
]
},
"spaceId": "5791e3ffd4c61f21c3df8b92",
"updatedAt": "2016-07-22 11:14:39.171000+00:00"
}
],
"limit": 10,
"total": 1
}
}List post acknowledgements
List who has acknowledged a post.
Inputs
- Post
post_idtextRequired - The post's ID, or the external ID you gave it.
- Page size
limitnumber - How many to return, up to 100. Leave empty for 10.From 1 to 100.
- Next page
cursortext - The cursor from the last page, to get the next one.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"cursor": "MTczNjc4MTE0NjU2Mw",
"data": [
{
"created": "2025-01-01T12:00:00.000Z",
"id": "67852d5a99affd0e4a535c2c",
"parentID": "6722478fe8edf20ffffba3b1",
"userID": "6622364fb6cddf3acf6d46da"
}
],
"limit": 1,
"total": 42
}
}List posts
List the news posts the API token can read, newest first if you choose.
Inputs
- Search
querytext - Only posts whose content contains this.
- Sort by
sorttext - Which date to sort by, newest first. Leave empty for Staffbase's own order.One of:
created_DESC(Newest created),published_DESC(Newest published),updated_DESC(Last changed). - Post type
content_typelist - Only posts of these types. Leave empty for all.One or more of:
articles,pictures,updates. - Only ones I can manage
manageabletrue/false - Only posts the API token can edit.
- Page size
limitnumber - How many to return, up to 100. Leave empty for 100.From 1 to 100.
- Skip
offsetnumber - How many to skip, for the next page. Leave empty to start at the first.At least 0.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"data": [
{
"campaignId": "602bce34e11096566faf4263",
"channelID": "5791e3ffd4c61f21c3df8b92",
"contents": {
"en_US": {
"content": "<p>Content can contain HTML.</p>",
"image": {
"original": {
"height": 1069,
"size": 753886,
"url": "https://cdn.eyo.net/production/image/upload/v1618901827/ocean.jpeg",
"width": 1900
}
},
"teaser": "Teaser is text only.",
"title": "The Title"
}
},
"created": "2021-04-19T09:14:39.171Z",
"externalID": "your-unique-external-id",
"id": "5791e3ffd4c61f21c3df8b93",
"planned": "2021-04-19T09:14:39.171Z",
"published": "2021-04-19T09:14:39.171Z",
"updated": "2021-04-19T09:14:39.171Z"
}
],
"limit": 10,
"offset": 0,
"total": 2
}
}List spaces
List the spaces on your platform.
Inputs
- Search
querytext - Only spaces that match this.
- Page size
limitnumber - How many to return, up to 100. Leave empty for 100.From 1 to 100.
- Skip
offsetnumber - How many to skip, for the next page. Leave empty to start at the first.At least 0.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"data": [
{
"accessorIDs": [
"5f031fb242ed490657458832"
],
"adminIDs": [
"5f031fb242ed490657458831"
],
"branchID": "5afac5790a09a2503e8c7103",
"childIds": [
"5791e3ffd4c61f21c3df8b94"
],
"id": "5791e3ffd4c61f21c3df8b92",
"name": "Marketing",
"parentId": "5791e3ffd4c61f21c3df8b90",
"rootMenuNodeId": "5791e3ffd4c61f21c3df8b95",
"sections": [
"pages"
]
}
],
"limit": 100,
"offset": 0,
"total": 1
}
}List users
List the people on your Staffbase platform.
Inputs
- Search
querytext - Only users with this in any profile field, such as a name or location.
- Filter
filtertext - Only users that match a filter, such as status eq "activated".
- Sort by
sorttext - The order. Leave empty for oldest first.One of:
created_ASC(Oldest first),created_DESC(Newest first),lastName_ASC_firstName_ASC(Name),updated_DESC(Last changed first),activated_DESC(Last activated first). - Page size
limitnumber - How many to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Skip
offsetnumber - How many to skip, for the next page. Leave empty to start at the first.At least 0.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"data": [
{
"activated": "2021-07-28T06:49:15.462Z",
"config": {
"locale": "en_US"
},
"created": "2021-07-22T09:14:39.146Z",
"department": "Development & Research",
"emails": [
{
"primary": true,
"providerID": "staffbase",
"value": "john@doe.com"
}
],
"externalID": "jd123",
"firstName": "John",
"groupIDs": [
"c69e7b20e6504345aa4b4938"
],
"id": "20e6504df8a90a4345aa4b49",
"lastName": "Doe",
"location": "Chemnitz",
"phoneNumber": "+491234567890",
"position": "Developer",
"publicEmailAddress": "hi@example.com",
"role": {
"type": "editor"
},
"status": "activated",
"updated": "2021-08-16T15:15:45.668"
}
],
"limit": 10,
"offset": 0,
"total": 2
}
}Resend post notifications
Notify people about a published post again.
Inputs
- Post
post_idtextRequired - The post's ID, or the external ID you gave it.
- Who
recipientstextRequired - Who to notify.One of:
all(Everyone who can read it),unread(People who haven't read it),acknowledged(People who acknowledged it). - Push notification
pushtrue/false - Send a push notification.
- Email
emailtrue/false - Send an email.
- Custom text
texttext - Your own notification text. Leave empty to use the post's teaser.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"contents": {
"en_US": {
"text": "Custom notification text."
}
},
"email": false,
"push": true,
"recipients": "ALL"
}
}Send notification
Send people or groups a notification that opens a page of your platform.
Inputs
- Recipients
recipient_idslistRequired - The IDs of the users or groups to notify.
- Text
titletextRequired - The notification's text.
- Link
linktextRequired - The page to open, as a path on your platform, such as /content/page/58d29169e4b013dab75a444a.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"channels": [
"push",
"notificationCenter"
],
"content": {
"en_US": {
"title": "Look here!"
}
},
"createdAt": "2020-10-24T12:46:34.792Z",
"id": "5bd069aa2158f0f32594fee1",
"link": "/content/page/58d29169e4b013dab75a444a",
"recipients": {
"accessorIds": [
"5bc5d9f3ccd66674cad763e9"
]
},
"type": "generic"
}
}Send password reset email
Email a person a link to reset their password.
Inputs
- User
usertextRequired - The user's ID, or their external ID.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {}
}Update post
Change a news post's text, image, or publish it.
Inputs
- Post
post_idtextRequired - The post's ID, or the external ID you gave it.
- Title
titletext - The post's title.
- Teaser
teasertext - A short plain-text summary, shown in the feed and in notifications.
- Content
contenttext - The body of the post. It can contain HTML.
- Image URL
imagetext - The address of an image to use as the post's main picture.
- External ID
external_idtext - Your own ID for the post, to find it again later. Letters, numbers, - and _ only.
- Publish
publishedtext - Choose Publish now to publish it at once. Leave empty to save it as a draft.One of:
now(Publish now). - Planned for
planneddate and time - The date and time the post is planned for, if it is still a draft.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"campaignId": "602bce34e11096566faf4263",
"channelID": "5791e3ffd4c61f21c3df8b92",
"contents": {
"en_US": {
"content": "<p>Content can contain HTML.</p>",
"image": {
"original": {
"height": 1069,
"size": 753886,
"url": "https://cdn.eyo.net/production/image/upload/v1618901827/ocean.jpeg",
"width": 1900
}
},
"teaser": "Teaser is text only.",
"title": "The Title"
}
},
"created": "2021-04-19T09:14:39.171Z",
"externalID": "your-unique-external-id",
"id": "5791e3ffd4c61f21c3df8b93",
"planned": "2021-04-19T09:14:39.171Z",
"published": "2021-04-19T09:14:39.171Z",
"updated": "2021-04-19T09:14:39.171Z"
}
}Update user
Change a person's profile fields or status.
Inputs
- User
usertextRequired - The user's ID, or their external ID.
- First name
first_nametext - Their first name.
- Last name
last_nametext - Their last name.
- Email
emailtext - Their main email address. It can't be changed once they set it themselves.
- External ID
external_idtext - Your own ID for them. It must be unique.
- Department
departmenttext - Their department.
- Job title
positiontext - Their job title.
- Location
locationtext - Their location.
- Phone number
phone_numbertext - Their phone number.
- Public email
public_emailtext - An email address to show on their profile. It isn't used to contact them.
- Status
statustext - Their status. Deactivated people can no longer sign in.One of:
pending,activated,deactivated.
Outputs
dataobject- The response from Staffbase.
Example output
{
"data": {
"activated": "2021-07-28T06:49:15.462Z",
"config": {
"locale": "en_US"
},
"created": "2021-07-22T09:14:39.146Z",
"department": "Development & Research",
"emails": [
{
"primary": true,
"providerID": "staffbase",
"value": "john@doe.com"
}
],
"externalID": "jd123",
"firstName": "John",
"groupIDs": [
"c69e7b20e6504345aa4b4938"
],
"id": "20e6504df8a90a4345aa4b49",
"lastName": "Doe",
"location": "Chemnitz",
"phoneNumber": "+491234567890",
"position": "Developer",
"publicEmailAddress": "hi@example.com",
"role": {
"type": "editor"
},
"status": "activated",
"updated": "2021-08-16T15:15:45.668"
}
}