Requesting configuration
Last updated on
30 April 2025
Description
In the SocialHub service are 3 basic types of configuration entities:
The following routes will return the available config-objects for the requested App.
Structure

GET /configs
Returns an object with the following properties:
- channels: An array list of available channel objects.
- posttypes: An array list of available post type objects.
- networktargets: An array list of available network target objects.
Example result:
{
channels: [
{
id: "cc2cbcd508f446b1bc971828e3eddb36",
name: "Human resources",
description: "Channel to publish HR-relevant content to",
posttypes: [
"6509dd71d825a26be2814e871da42cbc",
"d1a090c40764468af0ecc99d38156a12"
]
},
{
id: "3bb7f9bd97c99ecb3692ef966f43f70a",
name: "Marketing",
description: "Channel to publish content for marketing to",
posttypes: [
"6509dd71d825a26be2814e871da42cbc"
]
}
],
posttypes: [
{
id: "3bb7f9bd97c99ecb3692ef966f43f665e",
name: "Page Status Post",
description: "Posts the content as status to a FB page",
networktarget: "d1a090c40764468af0ecc99d38156a12",
type: "STATUS"
},
{
id: "3bb7f9bd97c99ecb3692ef966f43f829a",
name: "Page Image Post",
description: "Posts the content as image or album to a FB page",
networktarget: "d1a090c40764468af0ecc99d38156a12",
type: "IMAGE"
}
],
networktargets: [
{
id: "d1a090c40764468af0ecc99d38156a12",
name: "FB page",
description: "This is our companies FB page",
posttypes: [
"3bb7f9bd97c99ecb3692ef966f43f665e"
],
networkType: "FACEBOOK",
anchorType: "FBPAGE"
}
]
}GET /configs/channels
Returns an array list of available channel objects.
Example result:
[
{
id: "cc2cbcd508f446b1bc971828e3eddb36",
name: "Human resources",
description: "Channel to publish HR-relevant content to",
posttypes: [
"6509dd71d825a26be2814e871da42cbc",
"d1a090c40764468af0ecc99d38156a12"
]
},
{
id: "3bb7f9bd97c99ecb3692ef966f43f70a",
name: "Marketing",
description: "Channel to publish content for marketing to",
posttypes: [
"6509dd71d825a26be2814e871da42cbc"
]
}
]
GET /configs/posttypes
Returns an array list of available post type objects.
Example result:
[
{
id: "3bb7f9bd97c99ecb3692ef966f43f665e",
name: "Page Status Post",
description: "Posts the content as status to a FB page",
networktarget: "d1a090c40764468af0ecc99d38156a12",
type: "STATUS"
},
{
id: "3bb7f9bd97c99ecb3692ef966f43f829a",
name: "Page Image Post",
description: "Posts the content as image or album to a FB page",
networktarget: "d1a090c40764468af0ecc99d38156a12",
type: "IMAGE"
}
]
GET /configs/networktargets
Returns an array list of available network target objects.
Example result:
[
{
id: "d1a090c40764468af0ecc99d38156a12",
name: "FB page",
description: "This is our companies FB page",
posttypes: [
"3bb7f9bd97c99ecb3692ef966f43f665e"
],
networkType: "FACEBOOK",
anchorType: "FBPAGE"
}
]
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion
SocialHub Publisher API