Actions9
- Upload Actions
- Status & History Actions
- User Actions
Overview
This node integrates with the Upload-Post API to manage social media content and user profiles. Specifically, for the User resource and the Generate JWT (for Platform Integration) operation, it generates a JSON Web Token (JWT) that creates a connection URL for a given user profile. This JWT is used to link social media accounts through your own platform integration, enabling seamless authentication and authorization flows.
Common scenarios where this node is beneficial include:
- Integrating Upload-Post functionality into a custom platform or application.
- Generating secure tokens to allow users to connect their social media accounts via Upload-Post.
- Customizing the linking experience with optional redirect URLs, branding images, and button text.
Practical example:
- You have a web app where users can manage their social media posts. Using this node, you generate a JWT for each user profile that your backend uses to create a secure connection URL. Users click the link, authenticate their social accounts, and then return to your app via an optional redirect URL.
Properties
| Name | Meaning |
|---|---|
| User Identifier | The profile name created in your upload-post.com account. Found under 'Manage Users' (e.g., app.upload-post.com/manage-users). Required to specify which user the JWT is generated for. |
| Redirect URL | Optional URL to redirect the user after they link their social account. Useful for returning users back to your platform after authentication. |
| Logo Image URL | Optional URL of a logo image to display on the social account linking page. Allows branding customization during the linking process. |
| Redirect Button Text | Optional text for the button shown after linking completes. Defaults to "Logout connection" if not specified. |
| Platforms (Optional) | Optional list of social media platforms to show for connection during linking. If omitted, all supported platforms are shown. Supported platforms include Facebook, Instagram, LinkedIn, Threads, TikTok, X (Twitter), YouTube. |
Output
The node outputs a JSON object containing the response from the Upload-Post API's JWT generation endpoint. This typically includes:
- A JWT token string that encodes the connection URL and permissions.
- Possibly metadata about the user or the generated token.
The output is structured as:
{
"json": {
// API response fields, including the JWT token and related info
},
"pairedItem": {
"item": <index_of_input_item>
}
}
No binary data is produced by this operation.
Dependencies
- Requires an API key credential for the Upload-Post API configured in n8n.
- Network access to
https://api.upload-post.com/api/users/generate-jwtendpoint. - Proper user profiles must exist in the Upload-Post system to generate JWTs for them.
Troubleshooting
- Missing or invalid User Identifier: The node requires a valid profile name. Ensure the user exists in your Upload-Post account.
- API authentication errors: Verify that the API key credential is correctly set up and has necessary permissions.
- Invalid Redirect URL or Logo Image URL: If provided, these should be valid URLs; otherwise, the API might reject the request.
- Empty or malformed Platforms list: If specifying platforms, ensure they are among the supported options; otherwise, the API may ignore or error out.
- Network issues: Ensure your environment can reach the Upload-Post API endpoint without firewall or proxy blocking.
If the node returns an error message from the API, check the message details for hints such as invalid parameters or authentication failures.