Access token
Authenticate and retrieve an access_token to use as a bearer token in the header for other API calls.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
usernamestringOptional
passwordstringOptional
Responses
200Success
application/json
post
/api/access_token200Success
api_base_url = "https://app.personaify.ai/api/"
username = "your_username"
password = "your_password"
access_token = get_access_token(api_base_url, username, password)
print(f"Successfully obtained access token for: {username}")Last updated