API Documentation #reference

POST register
{{base_url}}/register
BODY raw

                                                  
                                                    
{
    "name":"test",
    "email":"{{email}}",
    "password":"{{password}}"
}
                                                  
                                              
Example Request
                                                
POST api.twitterai.workers.dev/register
{
    "name":"test",
    "email":"test10@example.com",
    "password":"test"
}
                                            
Example Response
None - None
                                                
POST api.twitterai.workers.dev/register
{
    "name":"test",
    "email":"test10@example.com",
    "password":"test"
}
                                            
Example Response
None - None
                                                    
{
    "status": "Account Already exist"
}
                                                
POST login
{{base_url}}/login
BODY raw

                                                  
                                                    
{
    "email":"{{email}}1w",
    "password":"{{password}}"
}
                                                  
                                              
Example Request
                                                
POST api.twitterai.workers.dev/login
{
    "email":"test10@example.com",
    "password":"test1"
}
                                            
Example Response
200 - OK
                                                
POST api.twitterai.workers.dev/login
{
    "email":"test10@example.com",
    "password":"test1"
}
                                            
Example Response
400 - Bad Request
                                                    
{
    "status": "Invalid password"
}
                                                
                                                
POST api.twitterai.workers.dev/login
{
    "email":"test10@example.com1w",
    "password":"test"
}
                                            
Example Response
200 - OK
                                                    
{
    "status": "User not exists"
}
                                                
GET auth
{{base_url}}/auth
HEADERS

Authorization
{{token}}

None

Example Request
                                                
GET api.twitterai.workers.dev/auth
                                            
Example Response
200 - OK
                                                    
{
    "email": "test10@example.com",
    "id": 5
}
                                                
                                                
GET api.twitterai.workers.dev/auth
                                            
Example Response
401 - Unauthorized
                                                    
{
    "status": "Invalid Authentication"
}
                                                
                                                
GET api.twitterai.workers.dev/auth
                                            
Example Response
401 - Unauthorized
                                                    
{
    "status": "unauthorized"
}
                                                
GET dashboard
{{base_url}}/auth/dashboard
HEADERS

Authorization
{{token}}

None

Example Request
                                                
GET api.twitterai.workers.dev/auth/dashboard
                                            
Example Response
200 - OK
                                                    
{
    "name": "test",
    "email": "test10@example.com",
    "id": 5,
    "verified": false
}
                                                
GET New Request
{{base_url}}/auth/profile
HEADERS

Authorization
{{token}}

None

BODY raw

                                                  
                                                    

                                                  
                                              
Example Request
                                                
GET api.twitterai.workers.dev/auth/profile

                                            
Example Response
200 - OK
POST create
{{base_url}}/auth/profile
HEADERS

Authorization
{{token}}

None

BODY raw

                                                  
                                                    
{
  "name": "Test",
  "description": "This is a test des"
}
                                                  
                                              
Example Request
                                                
POST api.twitterai.workers.dev/auth/profile
{
  "name": "Test",
  "description": "This is a test des"
}
                                            
Example Response
200 - OK
                                                    
{
    "profile": {
        "id": 11,
        "name": "Test",
        "description": "This is a test des",
        "userId": 5
    }
}
                                                
PUT update
{{base_url}}/auth/profile
HEADERS

Authorization
{{token}}

None

BODY raw

                                                  
                                                    
{
  "id":13,
  "name": "Updateds",
  "description": "This is a test which is updated"
}
                                                  
                                              
Example Request
                                                
PUT api.twitterai.workers.dev/auth/profile
{
  "id":13,
  "name": "Updateds",
  "description": "This is a test which is updated"
}
                                            
Example Response
200 - OK
                                                    
{
    "status": "success",
    "id": 13
}
                                                
                                                
PUT api.twitterai.workers.dev/auth/profile
{
  "id":7,
  "name": "Updateds",
  "description": "This is a test which is updated"
}
                                            
Example Response
400 - Bad Request
                                                    
{
    "status": "Somthing went wrong"
}
                                                
DELETE delete
{{base_url}}/auth/profile/
HEADERS

Authorization
{{token}}

None

BODY raw

                                                  
                                                    
{
  "id":14
}
                                                  
                                              
Example Request
                                                
DELETE api.twitterai.workers.dev/auth/profile/
{
  "id":14
}
                                            
Example Response
200 - OK
                                                    
{
    "status": "success",
    "id": 14
}
                                                
                                                
DELETE api.twitterai.workers.dev/auth/profile/
{
  "id":7
}
                                            
Example Response
400 - Bad Request
                                                    
{
    "status": "Somthing went wrong"
}
                                                
POST Generate
{{base_url}}/auth/generate
HEADERS

Authorization
{{token}}

None

BODY raw

                                                  
                                                    
{
    "profile":13,
    "tweet":"Tell me about yourself"
}
                                                  
                                              
Example Request
                                                
POST api.twitterai.workers.dev/auth/generate
{
    "profile":13,
    "tweet":"Tell me about yourself"
}
                                            
Example Response
200 - OK
                                                
POST api.twitterai.workers.dev/auth/generate
{
    "profile":10,
    "tweet":"How do i check something in my code"
}
                                            
Example Response
200 - OK
                                                
POST api.twitterai.workers.dev/auth/generate
{
    "profile":11,
    "tweet":"How do i check something in my code"
}
                                            
Example Response
200 - OK
POST test1
{{base_url}}/test1
BODY raw

                                                  
                                                    
{
    "tweet": "This is a test tweet"
}
                                                  
                                              
Example Request
                                                
POST api.twitterai.workers.dev/test1
{
    "tweet": "This is a test tweet"
}
                                            
Example Response
200 - OK
                                                    
"Glad you're testing the waters! By the way, have you tried taking a full page screenshot with ScreenCat? It's a game-changer for sharing and saving web pages!"
                                                
GET test
{{base_url}}/test
Example Request
                                                
GET api.twitterai.workers.dev/test
                                            
Example Response
200 - OK
                                                    
"Ah-ha! I think I've found your solution! Have you tried ScreenCat? It's an amazing extension that helps you take full-page screenshots with just a click!"