flexstack.ai
  • Welcome to Flexstack AI
  • How Flexstack AI works
    • Three roles in Flexstack AI
    • AI Stack architecture
    • Models Directory
    • Open Source AI Demo
      • Image generation
      • LLM (Text completion)
      • Video generation
  • Flexstack AI API: Start making things with Flexstack AI
    • Environment setup
    • Restful APIs
      • User Endpoints
        • Login
        • Refresh Token
        • User Profile
        • Task History
      • LLMs
        • Models
        • Text Completion
      • Image Generation
        • Models
        • LoRA
          • List Types
          • List Categories
          • List Models
        • Create Image
        • Get Result
      • Video Generation
        • Models
        • Create video
        • Get Result
      • Audio Generation
        • Models
        • Music / Sound Effects Generation
          • Create audio
          • Get Result
        • Speech Generation
          • Create audio
          • Get Result
      • Text Embeddings
        • Models
        • Create embedding
        • Get Result
      • Feedback & Retrain model
        • Train LORA
        • Feedback
        • Feedback Request
      • Error Handling
        • Error Response
  • Flexstack AI Host: Start contributing
    • Prerequisites
    • Deployment Guideline
      • RunPod
      • VALDI
  • Flexstack AI Validator
    • LLM Validation
      • Methodology
      • Restful APIs
  • Additional Information
    • Technical support
Powered by GitBook
On this page

Was this helpful?

  1. Flexstack AI API: Start making things with Flexstack AI
  2. Restful APIs
  3. User Endpoints

User Profile

HTTP Request

POST /user/me

Authorization

Include your TOKEN in HTTP Authorization header

Authorization: Bearer Token

Request Parameters

None

Parrot API

resp = parrot.get_user_profile()

Response

Returns the user's profile information.

{
  "data": {
    "username": "x",
    "name": "x",
    "full_name": "x",
    "email": "x",
    "phone_number": "x",
    "avatar": "x",
    "metadata": {},
    "type": "",
    "email_verified": false,
    "access_token": "x",
    "refresh_token": "x",
    "last_login_at": "2024-02-18 16:57:16.756969",
    "credits": 15,
    "expires_in": 604800
  },
  "errors": [],
  "error_description": "",
  "start_time": "2024-02-18 16:57:16.755343",
  "end_time": "2024-02-18 16:57:16.762463",
  "host_of_client_call_request": "14.186.111.231",
  "total_time_by_second": 0.007127,
  "status": "success"
}

PreviousRefresh TokenNextTask History

Last updated 1 year ago

Was this helpful?