{"id":24534579,"url":"https://github.com/slashtechno/inbox","last_synced_at":"2025-03-15T22:23:07.550Z","repository":{"id":273154990,"uuid":"918847591","full_name":"slashtechno/inbox","owner":"slashtechno","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-31T02:50:17.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T03:23:09.384Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slashtechno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-19T02:33:49.000Z","updated_at":"2025-01-31T02:50:20.000Z","dependencies_parsed_at":"2025-01-19T03:25:02.025Z","dependency_job_id":"510d270c-5ccc-4696-b006-c580c46cfc50","html_url":"https://github.com/slashtechno/inbox","commit_stats":null,"previous_names":["slashtechno/inbox"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashtechno%2Finbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashtechno%2Finbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashtechno%2Finbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashtechno%2Finbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slashtechno","download_url":"https://codeload.github.com/slashtechno/inbox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243797891,"owners_count":20349487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-22T11:17:52.135Z","updated_at":"2025-03-15T22:23:07.542Z","avatar_url":"https://github.com/slashtechno.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inbox\nA rudimentary API for creating \"inboxes\", which you can receive messages to. Even without creating an inbox, you can send messages to other inboxes.\n\nPlease note, content is user-generated so use at your own risk.\n\nI also used Inbox as a learning project to get famillar with SQLModel and OAuth with FastAPI.\n\n## Endpoints\nBesides `/login`, data is sent via a JSON body.  \nAuthentication is done via JWT tokens, which are passed in the `Authorization` header as `Bearer \u003ctoken\u003e`.\n### `POST /login`\nTakes form data with a `username` and `password` field. Returns a JWT token.\n### `POST /inbox`\nTakes a JSON body with a `username` and `password` field. Returns a JWT token. **The password is hashed in the database!**\n### `GET /inboxes`  \nGet your current inbox and its information, including the messages in it. Requires authentication.\n### `POST /messages/send`\nTakes a JSON body with a `to`, `name`, and `text` field. Sends a message to the inbox with the given `to` username. Requires authentication.\n### `GET /messages`\nGet all messages in your inbox. Requires authentication.\n### `GET /help`\nReturns basic information about the API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashtechno%2Finbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslashtechno%2Finbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashtechno%2Finbox/lists"}