Overview
The AudioPod AI Account Management API provides endpoints for managing user profiles, account settings, and personal information. This API allows you to update user details, manage phone verification, and handle account preferences programmatically.Key Features
- Profile Management: Update name, contact information, and preferences
- Phone Verification: Add and verify phone numbers for enhanced security
- Account Settings: Manage account type, usage preferences, and onboarding status
- Provider Linking: Connect and manage OAuth provider accounts
- Account Information: Retrieve current user data and account status
Authentication
All endpoints require authentication:- API Key:
Authorization: Bearer your_api_key - JWT Token:
Authorization: Bearer your_jwt_token
Get Account Information
Current User Profile
Get detailed information about the authenticated user account.- GET
- Python
- cURL
Update Account Information
Update User Profile
Modify user profile information and preferences.- PATCH
- Python
- cURL
individual- Personal usecompany- Business use
personal- Personal projectscreator- Content creationbusiness- Business applicationsvoice_actor- Professional voice workeducation- Educational contentengineer- Technical applicationsmarketer- Marketing contentother- Other use cases
Phone Verification
Send Phone Verification
Send OTP code to phone number for verification.- POST
- Python
Verify Phone Number
Confirm phone number with OTP code.- POST
- Python
Password Management
Change Password
Update account password with current password verification.- POST
- Python
- Minimum 6 characters
- At least one letter (uppercase or lowercase)
- At least one number
OAuth Provider Management
Link OAuth Provider
Connect external OAuth provider accounts (Google, GitHub).- POST
- Python
List Connected Providers
Get all connected OAuth provider accounts.- GET
- Python
Unlink OAuth Provider
Remove connection to an OAuth provider.- DELETE
- Python
Session Management
Get Active Sessions
List all active user sessions across devices.- GET
- Python
Revoke Sessions
Revoke specific sessions or all other sessions.- POST
- Python
Update Device Information
Update device information for current session.- POST
- Python
Account Validation
Validate Session
Check if current session is valid and get session information.- GET
- Python
Integration Examples
Account Health Check
Error Handling
400 Bad Request - Invalid Phone Number
400 Bad Request - Invalid Phone Number
Causes: - Invalid phone number format - Unsupported country code
Solutions: - Use international format (+1234567890) - Check supported country codes -
Verify phone number is valid
401 Unauthorized - Invalid Session
401 Unauthorized - Invalid Session
409 Conflict - Provider Already Linked
409 Conflict - Provider Already Linked
Causes: - OAuth provider already connected - Email conflict with existing account
Solutions: - Unlink existing provider first - Use different email address
422 Validation Error
422 Validation Error
Causes: - Invalid user type - Password doesn’t meet requirements - Invalid field values
Solutions: - Check allowed values for enums - Verify password requirements -
Validate input data format
