API Documentation #reference

General notes

API detail

User

register

curl -X POST -d '{
    "name":"test",
    "email":"test10@example.com",
    "password":"test"
}' "api.twitterai.workers.dev/register"
POST api.twitterai.workers.dev/register HTTP/1.1
Host: 

{
    "name":"test",
    "email":"test10@example.com",
    "password":"test"
}
Status0
{
    "status": "Account Created successfully",
    "id": 5,
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw"
}
Status0
{
    "status": "Account Already exist"
}

login

curl -X POST -d '{
    "email":"test10@example.com1w",
    "password":"test"
}' "api.twitterai.workers.dev/login"
POST api.twitterai.workers.dev/login HTTP/1.1
Host: 

{
    "email":"test10@example.com1w",
    "password":"test"
}
Status200 OK
DateTue, 25 Jun 2024 21:53:52 GMT
Content-Typeapplication/json; charset=UTF-8
Transfer-Encodingchunked
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=buHjbx7rPgzS%2B%2B5firdOLuyocNJoZNu%2BHleHC9W0CzCTVM4In7OyoQhNTfvDqsmFjs4FYbbcPgM8HYHotpydwWB4qpTXN3Jq8sNVoQcUqkaUG2nl80IBIQkltYeoVUHsG79iGI%2FbtTpOwOIH"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY899831557aea8256-IAD
Content-Encodinggzip
alt-svch3=":443"; ma=86400
{
    "status": "Logged In",
    "id": 5,
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw"
}
Status400 Bad Request
DateTue, 25 Jun 2024 21:55:49 GMT
Content-Typeapplication/json; charset=UTF-8
Content-Length29
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=T1g5t1umEvAxCmBoGju%2FDpZFSO8vjDSdbfc0LDMTzx7z1GAcMJKcN83dB%2B71YZyc88%2BXCcTUoil%2Bibugr0JjKFdaA%2BU8zQPMtN2c9HMijaNY%2FeJgB3Z6FRsnuLEMDTrPYHmuRzh9ClbOq8JC"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY899834324b697f56-IAD
alt-svch3=":443"; ma=86400
{
    "status": "Invalid password"
}
Status200 OK
DateTue, 25 Jun 2024 21:56:47 GMT
Content-Typeapplication/json; charset=UTF-8
Content-Length28
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=dewLwfBok%2FsOLP0eVeDphCG%2BbnaOgoKgYlVvE2Kp0BoLvydhLxyQgmmeqL1%2Bt7C7manLooyQxz03V%2Bn%2F%2FW7QU6qHDg5TmiDJlaFrkdrwgDyEXY1NaeD%2FjQzvP%2BK60Zk3Aiv7Fo14bissGDi2"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY8998359f2c006fb3-IAD
alt-svch3=":443"; ma=86400
{
    "status": "User not exists"
}

auth

curl -X GET -H "Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw" "api.twitterai.workers.dev/auth"
GET api.twitterai.workers.dev/auth HTTP/1.1
Host: 
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw
Status200 OK
DateTue, 25 Jun 2024 21:58:22 GMT
Content-Typeapplication/json; charset=UTF-8
Content-Length37
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=QXsd95Z2%2FZlax1DKOPPuSImq0vOJPqBt%2BVrGG4PGZ1lDLJpbN3CmmdEhVkkjSSU5RsoXUGsr48zcpWcykO241c3A37wiTGrV%2Be1CJurtVfe5de%2BPb6ZxkmPhE1nsvYeywIJ5By%2FNZQcvZ0xf"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY899837f5ea450674-IAD
alt-svch3=":443"; ma=86400
{
    "email": "test10@example.com",
    "id": 5
}
Status401 Unauthorized
DateTue, 25 Jun 2024 21:58:41 GMT
Content-Typeapplication/json; charset=UTF-8
Content-Length35
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=0jbPNkE55iee1peO%2BJjzYlXh%2B1ijwB0mEOnf12h2QkC6h%2FRSbSWVZcEBIu0U8W9%2FIsPW8m5IJCdo%2BUfBmrTzpBkrqHRXCGp%2FnYcTW6a5C%2FNaSPQQXBW8GZf9WZF8tQE4PpXeO%2B1hfPrYhKqr"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY8998386ade9d8027-IAD
alt-svch3=":443"; ma=86400
{
    "status": "Invalid Authentication"
}
Status401 Unauthorized
DateTue, 25 Jun 2024 21:59:28 GMT
Content-Typeapplication/json; charset=UTF-8
Content-Length25
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=W2EN%2BMRdqLpTs8TeixYXUBLxPEtuckwne4XjWnAsqgcd0udr2ogjhmaSksYdtQSCQ8EV3l2DFgJC2BUNNWhTqK9e6jDTxC%2Bee1eeiF6pukXlZdC8fjS8lIIk%2FrM1JNCrNUpljI2eOIxQ4E5c"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY8998398fda9a0774-IAD
alt-svch3=":443"; ma=86400
{
    "status": "unauthorized"
}

dashboard

curl -X GET -H "Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw" "api.twitterai.workers.dev/auth/dashboard"
GET api.twitterai.workers.dev/auth/dashboard HTTP/1.1
Host: 
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw
Status200 OK
DateTue, 25 Jun 2024 22:01:41 GMT
Content-Typeapplication/json; charset=UTF-8
Transfer-Encodingchunked
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=vnwoDA2BOHOcLbZQbTZo8fQYK7hulJtg3%2F8Ig%2BbjpAz80Rj7Yi0L%2BbtE8Jkyt2UZVjsw94K2Lpp5qxOdbSLVo3zw390rpcmiAbx%2FDla0cp3pug42Ti%2FuM5njB85qFiSqwx8FO8kGgZsIsHuG"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY89983ccccff3594f-IAD
Content-Encodinggzip
alt-svch3=":443"; ma=86400
{
    "name": "test",
    "email": "test10@example.com",
    "id": 5,
    "verified": false
}

Profile

New Request

curl -X GET -H "Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw" "api.twitterai.workers.dev/auth/profile"
GET api.twitterai.workers.dev/auth/profile HTTP/1.1
Host: 
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw
Status200 OK
DateTue, 25 Jun 2024 22:19:46 GMT
Content-Typeapplication/json; charset=UTF-8
Transfer-Encodingchunked
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=TNXtDVFwyyDvdl8slviyBLHbPMWvzrqZT1wu7fQhkZyj7lqqUef0xYg60gpKOboV1iPix0tHGdJk1VcZ1ewVGmAhs7aZb2YXzOXYTEQTYcnsN2e9CBAW59NaSfc6zNkF6l%2Fhx5tTVbI55vHC"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY8998574958ec13c8-IAD
Content-Encodinggzip
alt-svch3=":443"; ma=86400
[
    {
        "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
    }
]

create

curl -X POST -H "Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw" -d '{
  "name": "Test",
  "description": "This is a test des"
}' "api.twitterai.workers.dev/auth/profile"
POST api.twitterai.workers.dev/auth/profile HTTP/1.1
Host: 
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw

{
  "name": "Test",
  "description": "This is a test des"
}
Status200 OK
DateTue, 25 Jun 2024 22:06:58 GMT
Content-Typeapplication/json; charset=UTF-8
Transfer-Encodingchunked
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=xGbv%2FJzqdZHivu3B%2B%2FDouiE6ey%2BZASzB3HhE23gUTZ9nF9XNzlj4Z2La3%2Bx%2FF37TR%2FnHd7mJj%2BHvKD16vjxrhIiioawt8rAbOy%2FnvEPxSO5yb39mfrONDAkPHEYiCExs8DlYH%2Fpx%2F1pNC2Dz"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY8998448a8eb9829f-IAD
Content-Encodinggzip
alt-svch3=":443"; ma=86400
{
    "profile": {
        "id": 11,
        "name": "Test",
        "description": "This is a test des",
        "userId": 5
    }
}

update

curl -X PUT -H "Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw" -d '{
  "id":13,
  "name": "Updateds",
  "description": "This is a test which is updated"
}' "api.twitterai.workers.dev/auth/profile"
PUT api.twitterai.workers.dev/auth/profile HTTP/1.1
Host: 
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw

{
  "id":13,
  "name": "Updateds",
  "description": "This is a test which is updated"
}
Status200 OK
DateTue, 25 Jun 2024 22:15:45 GMT
Content-Typeapplication/json; charset=UTF-8
Content-Length28
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=76bOB7R6jxFm5UappwBan2JWqJzXCtVkewX1zjffq4y5aleb%2BjzyZMLUOUTGTM4ssGdWq0nY%2B3W6D4fRfyrCgMvVSL4sALM5H1GZfkAngzlVbRndOb%2BUmc2aVFvqnISv2ny1n%2BAy5%2BeMFj0e"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY899851634dbb0790-IAD
alt-svch3=":443"; ma=86400
{
    "status": "success",
    "id": 13
}
Status400 Bad Request
DateTue, 25 Jun 2024 22:17:35 GMT
Content-Typeapplication/json; charset=UTF-8
Content-Length32
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=usS5BWkwotWA%2FeiZz1PsO6Sr%2BP%2FbahQKHUZ%2BP0mtMmE7vGVJ6EWel6YK3jTw%2FNV%2F%2Fe%2F5mU%2BhlTZW74DnK6k8LpOJdssycQOUn0koEgwmRaoOO2CEoIenbVTioUGPBdKEwqQf3yuIlvTG3vUs"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY89985418d9790817-IAD
alt-svch3=":443"; ma=86400
{
    "status": "Somthing went wrong"
}

delete

curl -X DELETE -H "Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw" -d '{
  "id":14
}' "api.twitterai.workers.dev/auth/profile/"
DELETE api.twitterai.workers.dev/auth/profile/ HTTP/1.1
Host: 
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw

{
  "id":14
}
Status200 OK
DateTue, 25 Jun 2024 22:16:39 GMT
Content-Typeapplication/json; charset=UTF-8
Content-Length28
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=Pdwc5Zr3CK%2FmRIRQWdgE1MezAPyQf4M6vzEa%2Br3ngQJrV75cMD3I%2FGc7WpQwZ7yPq%2BK9c%2Fvj%2FnfK1drOvYrwQobY5%2FQYaqnyuK8Y2KZKg8EejTtd2qBAZCofQfI%2FT3cLCSH8lYTPbZE4uNR1"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY899852b72cf55908-IAD
alt-svch3=":443"; ma=86400
{
    "status": "success",
    "id": 14
}
Status400 Bad Request
DateTue, 25 Jun 2024 22:18:15 GMT
Content-Typeapplication/json; charset=UTF-8
Content-Length32
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=tebVahKO%2FSWVA3QP4S6gRuAvBDK4VBfcGb1yoJtpNasHqbumjdY9eaSOQFygeKeXFAdIWgiK%2Fo51I5vtPS1%2B2rORylJfFk%2FwiwqgLkJ68HKh6mvl0jsttD8cUoK%2Fw22BYMcpGEthqQ%2BsscH8"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY89985512fd73584e-IAD
alt-svch3=":443"; ma=86400
{
    "status": "Somthing went wrong"
}

Generate

Generate

curl -X POST -H "Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw" -d '{
    "profile":13,
    "tweet":"Tell me about yourself"
}' "api.twitterai.workers.dev/auth/generate"
POST api.twitterai.workers.dev/auth/generate HTTP/1.1
Host: 
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QxMEBleGFtcGxlLmNvbSIsImlkIjo1fQ.15zG5Hz6MNteL9C-R7A6r7Z8-EZEUIaWjIppbwlBahw

{
    "profile":13,
    "tweet":"Tell me about yourself"
}
Status200 OK
DateTue, 25 Jun 2024 22:23:39 GMT
Content-Typeapplication/json; charset=UTF-8
Transfer-Encodingchunked
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=NVkjTZC1oCSzf5prIKABmIJHwtuDT73B4tsMPdLraOKBiWqZumGigtbsI28ci%2FR0JBwwElFTqBfcF%2BlnQKbGeicpJOpRC12uIk9FhUmBwgChGzMFAQRBTsqjjbDgpF86R1dFPOmQMPghFpOp"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY89985cf719572052-IAD
Content-Encodinggzip
alt-svch3=":443"; ma=86400
{
    "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"
}
Status200 OK
DateTue, 25 Jun 2024 22:24:36 GMT
Content-Typeapplication/json; charset=UTF-8
Transfer-Encodingchunked
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=L6TdkH7NfEGaR0%2FZK4fYdgb8mIYN8bquDbGIiFFa8K8eGFc9xUEcvdrjn6LWQGZyd4w6yNpzwg11oNcPhTt%2FFMTj8iIPhuquNT4GXEuQI3YiIXkuleXC9o5gGzbLtJayCny68eBY1kiAYcNc"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY89985e5b48ca2d0a-IAD
Content-Encodinggzip
alt-svch3=":443"; ma=86400
{
    "response": "\"Hey! That's a great question! By the way, have you tried using this newly updated test to identify potential issues in your code?\"",
    "profile": "Updated"
}
Status200 OK
DateTue, 25 Jun 2024 22:25:02 GMT
Content-Typeapplication/json; charset=UTF-8
Transfer-Encodingchunked
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=bPKawSMocY%2BL8XGnT4s32lgqj%2FX%2BlCZmTOZuJXXv1cXigc1MXVbMzy9%2B7063VBa%2BF1i7ZoE%2BPFe9GtzBSargRsVtWQfS50sKVFXHd6xQFfz6OHMhbmi5H%2FKLRalTUIyXp8JpCiNOelHVag9M"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY89985f010b1d2d0a-IAD
Content-Encodinggzip
alt-svch3=":443"; ma=86400
{
    "response": "\"Perhaps you can try debugging your code step by step to identify the issue? It's always a good idea to test your code in smaller parts to ensure everything is working as expected.\"",
    "profile": "Test"
}

test1

curl -X POST -d '{
    "tweet": "This is a test tweet"
}' "api.twitterai.workers.dev/test1"
POST api.twitterai.workers.dev/test1 HTTP/1.1
Host: 

{
    "tweet": "This is a test tweet"
}
Status200 OK
DateTue, 25 Jun 2024 22:22:17 GMT
Content-Typetext/plain; charset=UTF-8
Transfer-Encodingchunked
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=bHhwNYog35bnRP0GlEHLaI7G1nYTMj3iN2EGsei3ySwNNC%2Bz%2FW2fb9nk%2BgKeW12ftKyjelMaYQDZIrtf2Jv8g%2F5mWIBm%2BHL4HpqcIUq1jaflRrQCHwbiWV%2FKYdp7Wy1ehYeH1Vp0Yhywbf%2B3"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY89985afc8bf381c9-IAD
Content-Encodinggzip
alt-svch3=":443"; ma=86400
"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!"

test

curl -X GET "api.twitterai.workers.dev/test"
GET api.twitterai.workers.dev/test HTTP/1.1
Host: 
Status200 OK
DateTue, 25 Jun 2024 22:21:17 GMT
Content-Typetext/plain; charset=UTF-8
Transfer-Encodingchunked
Connectionkeep-alive
Access-Control-Allow-Origin*
Report-To{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=AESnYtgBKDZKSN7JrFqZ29CMdQ3AOYoS2%2BOosMuBFeSwMpfAMz3Rx5kPz2mL6zxQLgCEfJSRVUCrE%2BvXNsSlKkqgANvhKdrIVehC%2F6uYQbcPr3XmHm6pxHYTTcXU%2FIFhAlgvp84gmwbM5sru"}],"group":"cf-nel","max_age":604800}
NEL{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
VaryAccept-Encoding
Servercloudflare
CF-RAY89985983ff662f1e-IAD
Content-Encodinggzip
alt-svch3=":443"; ma=86400
"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!"