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
{
"status": "Account Created successfully",
"id": 5,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw"
}
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
{
"status": "Logged In",
"id": 5,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw"
}
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
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
[
{
"name": "Updated",
"description": "This is a test which is updated",
"id": 10
},
{
"name": "Test",
"description": "This is a test des",
"id": 11
},
{
"name": "Test",
"description": "This is a test des",
"id": 12
},
{
"name": "Updateds",
"description": "This is a test which is updated",
"id": 13
}
]
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
}
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
}
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
{
"response": "\"I'm a highly motivated individual always looking to improve and grow. I'm excited to share that I recently updated my skills with a test, which has given me a fresh perspective on things. I'm looking forward to applying this new knowledge in innovative ways!\"",
"profile": "Updateds"
}
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!"