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/oauth/instagram/start
- Local development serverhttp://localhost:3000/oauth/instagram/start
- Staging environmenthttps://api-staging.varmply.com/oauth/instagram/start
- Production environmenthttps://api.varmply.com/oauth/instagram/start
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs-staging.varmply.com/_mock/openapi/oauth/instagram/start \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"redirectPath": "/dashboard"
}'{ "authorizationUrl": "https://api.instagram.com/oauth/authorize?client_id=xxx&redirect_uri=xxx&scope=xxx&response_type=code&state=xxx" }
- Mock serverhttps://docs-staging.varmply.com/_mock/openapi/oauth/instagram/callback
- Local development serverhttp://localhost:3000/oauth/instagram/callback
- Staging environmenthttps://api-staging.varmply.com/oauth/instagram/callback
- Production environmenthttps://api.varmply.com/oauth/instagram/callback
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs-staging.varmply.com/_mock/openapi/oauth/instagram/callback?code=AQBx...&state=eyJhbGc...'No contentRequest
Initiates the TikTok OAuth connect flow for an authenticated user. Returns an authorization URL that the client should redirect the user to. The user will authorize the app on TikTok and be redirected back to the callback endpoint. Requests the following TikTok scopes: user.info.basic, video.list
- Mock serverhttps://docs-staging.varmply.com/_mock/openapi/oauth/tiktok/start
- Local development serverhttp://localhost:3000/oauth/tiktok/start
- Staging environmenthttps://api-staging.varmply.com/oauth/tiktok/start
- Production environmenthttps://api.varmply.com/oauth/tiktok/start
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs-staging.varmply.com/_mock/openapi/oauth/tiktok/start \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"redirectUri": "https://app.varmply.com/integrations/callback"
}'{ "authorization_url": "https://www.tiktok.com/v2/auth/authorize/?client_key=xxx&redirect_uri=xxx&scope=user.info.basic,video.list&response_type=code&state=xxx", "expires_at_timestamp": "2024-01-01T00:10:00Z" }
Request
Handles the OAuth callback from TikTok after user authorization. Exchanges the authorization code for access tokens, fetches user profile, and creates/updates the social account. Redirects to the redirect URI specified in the original request with platform=tiktok and status=connected query parameters.
- Mock serverhttps://docs-staging.varmply.com/_mock/openapi/oauth/tiktok/callback
- Local development serverhttp://localhost:3000/oauth/tiktok/callback
- Staging environmenthttps://api-staging.varmply.com/oauth/tiktok/callback
- Production environmenthttps://api.varmply.com/oauth/tiktok/callback
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs-staging.varmply.com/_mock/openapi/oauth/tiktok/callback?code=act.xxx...&state=eyJhbGc...&error=access_denied&error_description=User+denied+access'No contentRequest
Triggers verification of the current user's TikTok connection. This endpoint is primarily for dev/admin use to manually verify connections. It tests the TikTok API access and updates the connection's capability status.
Verification steps:
- Fetch profile - verifies token validity
- List videos - verifies video.list scope
- Get video metrics - verifies metrics access
- Mock serverhttps://docs-staging.varmply.com/_mock/openapi/oauth/tiktok/verify
- Local development serverhttp://localhost:3000/oauth/tiktok/verify
- Staging environmenthttps://api-staging.varmply.com/oauth/tiktok/verify
- Production environmenthttps://api.varmply.com/oauth/tiktok/verify
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs-staging.varmply.com/_mock/openapi/oauth/tiktok/verify \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Verification completed successfully
Result of verification:
- VALID: All capabilities verified successfully
- LIMITED: Some capabilities available but not all
- ERROR: Verification failed
Whether the connection can read TikTok profile data
Whether the connection can list TikTok videos
Machine-readable reason code for the verification result
{ "status": "VALID", "capabilities": { "can_read_profile": true, "can_list_videos": true, "can_read_video_metrics": true }, "reason_code": null, "reason_message": null, "last_verified_at": "2024-01-01T12:00:00Z" }