Health check endpoints
Varmply Backend API (0.1.0)
Varmply API – MVP backend for campaigns, wallets, authentication, and influencer participation.
Common error codes: - NOT_FOUND - Resource not found (404) - VALIDATION_ERROR - Input validation failed (400) - PERMISSION_DENIED - User lacks permission (403) - CONFLICT - Resource conflict (409) - UNAUTHORIZED - Authentication required (401) - INTERNAL_SERVER_ERROR - Unexpected server error (500)
- Mock serverhttps://docs-staging.varmply.com/_mock/openapi/me/tiktok-connection
- Local development serverhttp://localhost:3000/me/tiktok-connection
- Staging environmenthttps://api-staging.varmply.com/me/tiktok-connection
- Production environmenthttps://api.varmply.com/me/tiktok-connection
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs-staging.varmply.com/_mock/openapi/me/tiktok-connection \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'TikTok connection status retrieved successfully
TikTok open ID for the connected account
Current verification status of the TikTok connection:
- PENDING: Connection created but not yet verified
- VALID: Connection verified with full capabilities
- LIMITED: Connection verified but with limited capabilities
- ERROR: Connection verification failed
Whether the connection can read TikTok profile data
Whether the connection can list TikTok videos
Machine-readable reason code for current status
Human-readable reason message
ISO 8601 timestamp of the last verification attempt
Error code from the last verification attempt (if any)
Error message from the last verification attempt (if any)
ISO 8601 timestamp when the connection was created
{ "tiktok_open_id": "open_id_12345", "status": "VALID", "capabilities": { "can_read_profile": true, "can_list_videos": true, "can_read_video_metrics": true }, "reason_code": "VERIFICATION_OK", "reason_message": "Connection verified successfully", "last_verified_at": "2024-01-01T12:00:00Z", "last_error_code": null, "last_error_message": null, "created_at": "2024-01-01T10:00:00Z", "updated_at": "2024-01-01T12:00:00Z" }
- Mock serverhttps://docs-staging.varmply.com/_mock/openapi/me/instagram-connection
- Local development serverhttp://localhost:3000/me/instagram-connection
- Staging environmenthttps://api-staging.varmply.com/me/instagram-connection
- Production environmenthttps://api.varmply.com/me/instagram-connection
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs-staging.varmply.com/_mock/openapi/me/instagram-connection \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Instagram connection status retrieved successfully (or null if no connection)
Current verification status of the Instagram connection:
- PENDING: Connection created but not yet verified
- VALID: Connection verified with full capabilities
- LIMITED: Connection verified but with limited capabilities
- ERROR: Connection verification failed
Whether the connection can read Instagram profile data
Whether the connection can read Instagram media posts
Whether the connection can read Instagram insights/analytics
Facebook Page ID associated with the Instagram account
ISO 8601 timestamp of the last verification attempt
Error code from the last verification attempt (if any):
- ME_CALL_FAILED: Failed to verify token with /me endpoint
- NO_IG_BUSINESS_ACCOUNT: No Instagram Business Account linked
- PROFILE_ACCESS_FAILED: Cannot access Instagram profile
- MEDIA_ACCESS_FAILED: Cannot access Instagram media
- INSIGHTS_ACCESS_FAILED: Cannot access Instagram insights
- COMMENTS_ACCESS_FAILED: Cannot access Instagram comments
- NO_CAPABILITIES: No capabilities available
- UNKNOWN_ERROR: An unexpected error occurred
{ "status": "VALID", "capabilities": { "canReadProfile": true, "canReadMedia": true, "canReadInsights": true, "canReadComments": true }, "pageId": "123456789", "instagramBusinessId": "987654321", "lastVerifiedAt": "2024-01-01T12:00:00Z", "lastErrorCode": null }