Skip to main content
Version: 1.0

Hootsuite REST API

Run in Postman

Introduction

The Hootsuite API is built on REST principles and uses JSON as a data interchange format.

Base URL​

All URLs referenced in this document use the following base: https://platform.hootsuite.com. The Hootsuite API is served over HTTPS to ensure data privacy.

Request Format​

The Hootsuite API supports the following HTTP verbs:

VerbDescription
GETGET requests retrieve resources. GET requests with query parameters should be URL encoded.
POSTPOST requests create or update resources. POST requests can partially update a resource by passing a subset of the fields that should be updated. To remove a single field set it to null. POST requests should always set content-type and character encoding to: application/json;charset=utf-8.
DELETEDELETE requests delete resources. Delete requests return a 200 OK with an empty data envelope if the request was successful.

Response Format​

All responses are returned in JSON. The response is wrapped in a top level data envelope which is an object or array depending on whether a single item or a collection is returned. If a single item is returned the data field will be an object. If a collection is returned the field will be an array. If the response was unsuccessful an errors array will be returned. Responses that partially fail will return both a data and errors object. A single item response:

{
"data": {},
"errors": [{},{},{}]
}

A collection response:

{
"data": [{},{},{}],
"errors": [{},{},{}]
"metadata": {}
}

HTTP Response Codes​

The Hootsuite API uses HTTP status codes to indicate the status of your request.

CodeDescription
200 OKResource was successfully created, updated, deleted or retrieved.
400 Bad RequestInvalid request, possibly due to missing parameters
401 UnauthorizedMissing or invalid authentication
403 ForbiddenAccess denied
404 Not FoundRequested resource does not exist
429 Too Many RequestsRate Limit Exceeded. Please contact dev.support@hootsuite.com for assistance
500 Server ErrorUnexpected error occurred on the server

API Error Handling​

Error responses are returned with the following fields. Note, the schema for OAuth2 error responses are different and comply with the RFC. Please refer to the Authorization endpoint documentation for details.

FieldDescription
codeUnique number indicating type of error
messageDescription of error
idUnique id for tracing purposes
resource(optional) type and id are used to point to the field(s) that caused the error
{
"errors": [
{
"code" : 1234,
"message": "Could not create message for social profile",
"id" : "f7d32670-4e6a-48c0-a2a7-87803536a712",
"resource": {
"type":"socialProfile",
"id":"7534653235"
}
}
]
}

Error Codes​

Here is a list of error codes and descriptions returned by our APIs:

CodeDescription
1000Missing or duplicate access token
1001Invalid access token
1002Invalid API key
1003Account plan limit exceeded
1004API plan limit exceeded
1005Token could not be retrieved
1006Token removal failed
1007The client could not be authenticated due to missing or invalid client credentials
1008Resource Owner authentication failed
1009Invalid grant_type
1010Invalid OAuth request
1011Duplicate OAuth parameters
1012Invalid authorization code
1013Must be confidential client
1014Unauthorized JWT user
1015Client registration could not be deleted
1016Client info could not be retrieved
1017Client info could not be updated
1018Client could not be registered
1019A registration type must be selected
1020Client key could not be deleted
1021The id_token values could not be retrieved
1022id_token could not be registered
1023id_token could not be removed therefore user logout could not be executed
1024Token could not be revoked
1025Token could not be registered
1026Non-valid parameter list for this operation
1027Missing authorization code
1028Authorization code could not be validated
1029id_token could not be validated
1030The client is not authorized to execute a status check
1031Invalid oauth parameters
1032Token could not be validated
1033The requested scope is not valid
1034The session is not valid
1035Missing oauth_token parameter
1036oauth_token invalid or expired
1037The required scope to access this endpoint was not granted by the user
1038token_type_hint is not supported
1039Client not authorized to revoke token
1040oauth_consumer_key invalid or expired
1041The token may not have been revoked due to an unknown error
1042Missing oauth_signature
1043Too many requests
1044Invalid oauth_signature_method
1100Invalid JSON schema
1201Not authorized to make changes to organization
2000Invalid member password
2001Invalid member email
2002Invalid member name (please enter name between 2 and 100 chars in length)
2003Invalid member default timezone
2004Invalid initials
2005Missing member name
2006Missing member email
2007Missing member password
2008No more available seats in organization
2303Invalid organization ID
2304Invalid member ID
2305Missing member ID
2306Missing social profile ID
3002Team name has to be between 2-200 characters
3003Unable to find an organization with that ID
3004Missing team ID
3005Invalid team ID
3006Team name has to be unique in the organization
3008Member is not seated in the organization
3010Email is already in use
3020Invalid cursor format
3021Invalid social network type
3301Payment member can’t be removed from the organization
4000Schema validation failed
4001Resource not found
4002Insufficient permissions to view organization members
4003Insufficient permissions to view member permissions
4004Insufficient permissions to view member organizations
4005Insufficient permissions to view team members
4006Insufficient permissions to view team
4007Insufficient permissions to create team
4008Insufficient permissions to view team social profile
4009Insufficient organization permissions
4010Insufficient permissions to view organization teams
4303Member does not exist in organization
5000An unknown error occurred
5001HTTP method not permitted
5002Unsupported operation
9000An internal error occurred
40001Social profile isn’t owned by organization (required for posting messages with tags)
40003You have attempted to delete a message that cannot be deleted in its current state
40004Only attachments from http://static.ow.ly or http://ow.ly/i/ are currently allowed
40005Insufficient permission to create new message tags
40019Message state filter not supported
40020Specified date range is too large
40021Uploaded media is not yet ready to be used (further processing required)
40022Invalid boolean for includeUnscheduledReviewMsgs flag
40023Twitter only allows 1 network per message
40024Posting to Facebook Groups is no longer supported
40025Scheduled message limit reached