Authentication

The Tagbox API provides powerful tools to programmatically access and manage your social media galleries, posts, and widgets. Build custom integrations, automate content workflows, and create dynamic social displays with our RESTful API.

What You Can Do

  • Retrieve gallery information and metadata
  • Fetch social media posts with pagination
  • Create custom posts programmatically
  • Integrate with your existing workflows
  • Build custom social media displays

Popular Use Cases

  • Website social media integration
  • Custom dashboard development
  • Automated content syndication
  • Mobile app social feeds
  • Analytics and reporting tools
Base URL: https://api.taggbox.com/api/v1/support/
Authentication: All API requests require a valid user_key parameter. Learn how to get your API user key

Authentication

Include your API user key as a query parameter in all requests. This key identifies your account and ensures secure access to your gallery data:

 https://api.taggbox.com/api/v1/support/galleries?user_key=YOUR_USER_KEY 

API Key Security Best Practices

  • Store your API key securely using environment variables
  • Never expose your API key in client-side code or public repositories
  • Regenerate your key if you suspect it has been compromised
  • Use server-side implementations for production applications

Response Formats

The API supports both JSON and XML response formats. Use the format parameter:

JSON (Default)
?format=json
XML
?format=xml

Standard Response Structure

{ "responseCode": 200, "responseStatus": "success",
"responseMessage": "Operation completed successfully",
"responseData": "/* API specific data */" }

GET Get Feed Info

Returns the feed sources for a specific gallery. You can filter using a user key and gallery Id for the list

 https://api.taggbox.com/api/v1/support/feeds?user_key=${user_key}&galleryId=${galleryId}&format=${format} 

Parameters

Parameter Type Required Description
user_key string
Required
Your API authentication key obtained from your Taggbox account settings. This key provides secure access to your gallery data.
Example: 605b54dfbed1d7bdad7fce305e135a78
galleryId integer
Required
The unique identifier for the gallery. You can find this Id in your Taggbox dashboard under gallery settings.
Example: 2183925
format string
Optional
Response format preference. Choose 'json' for JavaScript applications or 'xml' for legacy systems. Defaults to JSON if not specified.
Example: json/xml

Code Example


                                    
                                

Response Examples

200 - Success Response


                                    

                                

Try It Out

Test the API endpoint with live data

GET Get Post Info

Retrieves gallery posts with filters for network Id, user key, and gallery Id etc. You can also choose to show only tagged posts.

 https://api.taggbox.com/api/v1/support/posts?user_key=${user_key}&galleryId=${galleryId}&format=${format} 

Parameters

Parameter Type Required Description
user_key string
Required
Your API authentication key obtained from your Taggbox account settings. This key provides secure access to your gallery data.
Example: 605b54dfbed1d7bdad7fce305e135a78
galleryId integer
Required
The unique identifier for the gallery. You can find this Id in your Taggbox dashboard under gallery settings.
Example: 2183925
feedId array
Optional
The unique identifier for the feed.
Example: [2183925]
limit integer
Optional
The number of posts to retrieve. Defaults to 10 if not specified.
Example: 10
offset integer
Optional
The number of posts to skip before starting to retrieve. Defaults to 0 if not specified.
Example: 0
networkId array
Optional
The network Ids to filter posts by. Defaults to all networks if not specified.
Example: [4,2] Network Id List
idname
1Twitter
2Instagram
3Facebook
4Google
5Pinterest
6Flickr
7Youtube
8Vimeo
10LinkedIn
11Tumblr
12RSS
18Instagram Business
19Yelp
20Slack
23Airbnb
27Tiktok Business
28Tiktok
29Review Hub
34Amazon
35Tripadvisor
36Etsy
37AliExpress
38Booking.com
45Bluesky
productId string
Optional
The product Id to filter posts by. Defaults to all products if not specified.
Example: 112-hst
taggedOnly boolean
Optional
If true, only posts that are tagged with the specified product will be returned. Defaults to false if not specified.
Example: true/false
format string
Optional
Response format preference. Choose 'json' for JavaScript applications or 'xml' for legacy systems. Defaults to JSON if not specified.
Example: json/xml

Code Example


                                    
                                

Response Examples

200 - Success Response


                                    

                                

Try It Out

Test the API endpoint with live data

Error Codes

The Tagbox API provides powerful tools to programmatically access and manage your social media galleries, posts, and widgets. Build custom integrations, automate content workflows, and create dynamic social displays with our RESTful API.

Understanding error codes helps you debug issues and handle edge cases gracefully. The Tagbox API returns standardized HTTP status codes with detailed error messages to help you identify and resolve problems quickly.

200 HTTP Status Codes

Request was successful.

404 Not Found

Request was not found.

400 Bad Request

Invalid parameters or malformed request.

500 Internal Server Error

Something went wrong on our end

Error Handling Best Practices

  • Always check the responseCode field before processing data
  • Implement retry logic for temporary server errors (5xx codes)
  • Cache successful responses to reduce API calls
  • Log errors with request parameters for debugging
  • Display user-friendly error messages in your application
  • Handle rate limiting gracefully with exponential backoff

401 Unauthorized

Invalid or missing API key

{
"responseCode": 401,
"responseStatus": "error",
"responseMessage": "API is not available in this plan OR Wrong user key!"
}

404 Invalid Gallery Id

When the requested gallery doesn't exist or you don't have access

{
"responseCode": 404,
"responseStatus": "error",
"responseMessage": "Gallery not found or access denied"
}

400 Missing Required Parameters

Missing required parameters

{
"responseCode": 400,
"responseStatus": "error",
"responseMessage": "Missing required parameter: user_key!"
}