{"info":{"_postman_id":"84adb019-50c7-4286-8381-0d28ddbc7b29","name":"Journal api","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"44518762","collectionId":"84adb019-50c7-4286-8381-0d28ddbc7b29","publishedId":"2sB34kDyiT","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-07-19T18:10:13.000Z"},"item":[{"name":"signup","id":"d1d535b4-04f2-47fc-b3b8-9ba34f7e1a1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"hey@gmail.com\",\r\n    \"username\": \"user3\",\r\n    \"password\": \"Password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://cozypages.onrender.com/signup/","description":"<h2 id=\"signup-endpoint\">Signup Endpoint</h2>\n<p>This endpoint allows users to create a new account by providing their email, username, and password.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p><strong>Method:</strong> POST</p>\n</li>\n<li><p><strong>URL:</strong> <a href=\"https://cozypages.onrender.com\">https://cozypages.onrender.com/signup/</a></p>\n</li>\n<li><p><strong>Content-Type:</strong> application/json</p>\n</li>\n</ul>\n<h3 id=\"request-body-parameters\">Request Body Parameters</h3>\n<ul>\n<li><p><strong>email</strong> (string): The email address of the user. This will be used for account verification and communication.</p>\n</li>\n<li><p><strong>username</strong> (string): The desired username for the account. This should be unique to the user.</p>\n</li>\n<li><p><strong>password</strong> (string): The password for the account. It should meet security requirements.</p>\n</li>\n</ul>\n<h3 id=\"expected-response\">Expected Response</h3>\n<p>On a successful account creation, the server will respond with a status code of <strong>201</strong> and a JSON object containing a confirmation message indicating that the signup was successful. The response will have the following format:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": \"User created successfully\"\n}\n\n</code></pre>\n<h3 id=\"notes\">Notes</h3>\n<p>Ensure that all parameters are provided correctly to avoid errors during the signup process. The email must be valid, the username should not be taken, and the password should adhere to the security guidelines.</p>\n","urlObject":{"protocol":"https","path":["signup",""],"host":["cozypages","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1d535b4-04f2-47fc-b3b8-9ba34f7e1a1e"},{"name":"sign in","id":"838623ac-a2af-4335-9576-47be43fa934e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"user1\",\r\n    \"password\": \"Password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://cozypages.onrender.com/signin/","description":"<h2 id=\"sign-in-api\">Sign In API</h2>\n<p>This endpoint is used to authenticate a user by signing them into the application. It verifies the provided credentials (username and password) and returns a response indicating the success or failure of the authentication process.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p><strong>Method</strong>: POST</p>\n</li>\n<li><p><strong>URL</strong>: <a href=\"https://cozypages.onrender.com/signin/\">https://cozypages.onrender.com/signin/</a></p>\n</li>\n</ul>\n<h4 id=\"request-body\">Request Body</h4>\n<p>The request body must be in JSON format and should include the following parameters:</p>\n<ul>\n<li><p><code>username</code> (string): The username of the user attempting to sign in. This is required to identify the user in the system.</p>\n</li>\n<li><p><code>password</code> (string): The password associated with the provided username. This is required for authentication.</p>\n</li>\n</ul>\n<p><strong>Example Request Body:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"username\": \"user1\",\n  \"password\": \"Password123\"\n}\n\n</code></pre>\n<h3 id=\"response\">Response</h3>\n<p>The response will indicate whether the sign-in attempt was successful or not. The format of the response may vary based on the outcome of the authentication process.</p>\n<h3 id=\"expected-response-format\">Expected Response Format</h3>\n<ul>\n<li><p>On successful authentication, the response will include:</p>\n<ul>\n<li><p><code>access</code> (string): A token that grants access to the user's account and can be used for subsequent requests.</p>\n</li>\n<li><p><code>refresh</code> (string): A token that can be used to obtain a new access token once the current one expires.</p>\n</li>\n</ul>\n</li>\n<li><p>On failure, the response may include:</p>\n<ul>\n<li>An error message detailing the reason for the failure (e.g., invalid credentials).</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"additional-notes\">Additional Notes</h3>\n<p>Ensure that the request body is correctly formatted and all required fields are included to receive the desired response. Proper handling of the tokens received in response is essential for maintaining user sessions and security.</p>\n","urlObject":{"protocol":"https","path":["signin",""],"host":["cozypages","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"838623ac-a2af-4335-9576-47be43fa934e"},{"name":"create a new journal","id":"6bf464d3-4d09-4e7f-972e-1be14b73cc7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"My last entry\",\r\n    \"content\": \"Today i saw a cute dog, he wassss soooo cute but i was sacred of him funny huh ;0 \"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://cozypages.onrender.com/journals/","description":"<h2 id=\"create-journal-entry\">Create Journal Entry</h2>\n<p>This endpoint allows users to create a new journal entry. By sending a POST request to the <code>/journals/</code> endpoint, users can submit their journal data, which includes a title and content for the entry.</p>\n<h3 id=\"request\">Request</h3>\n<h4 id=\"method\">Method</h4>\n<p><code>POST</code></p>\n<h4 id=\"url\">URL</h4>\n<p><code>https://cozypages.onrender.com/journals/</code></p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>The request body must be in JSON format and should include the following parameters:</p>\n<ul>\n<li><p><strong>title</strong> (string): The title of the journal entry.</p>\n</li>\n<li><p><strong>content</strong> (string): The main content or body of the journal entry.</p>\n</li>\n</ul>\n<p><strong>Example Request Body:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"title\": \"My last entry\",\n  \"content\": \"Today I saw a cute dog, he was ...\"\n}\n\n</code></pre>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful creation of a journal entry, the API will respond with a status code of <code>201 Created</code>. The response will contain the following structure:</p>\n<ul>\n<li><p><strong>message</strong> (string): A message indicating the result of the operation (may be empty).</p>\n</li>\n<li><p><strong>data</strong> (object): An object containing details of the created journal entry:</p>\n<ul>\n<li><p><strong>id</strong> (integer): The unique identifier for the journal entry.</p>\n</li>\n<li><p><strong>title</strong> (string): The title of the journal entry as provided in the request.</p>\n</li>\n<li><p><strong>content</strong> (string): The content of the journal entry as provided in the request.</p>\n</li>\n<li><p><strong>created_at</strong> (string): Timestamp indicating when the journal entry was created.</p>\n</li>\n<li><p><strong>updated_at</strong> (string): Timestamp indicating when the journal entry was last updated.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p><strong>Example Response:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": \"\",\n  \"data\": {\n    \"id\": 0,\n    \"title\": \"My last entry\",\n    \"content\": \"Today i saw a cute dog, he wassss soooo cute but i was sacred of him funny huh ;0\",\n    \"created_at\": \"2025-08-09T07:47:46.318274Z\",\n    \"updated_at\": \"2025-08-09T07:47:46.318303Z\"\n  }\n}\n\n</code></pre>\n<h3 id=\"summary\">Summary</h3>\n<p>This endpoint is essential for users looking to document their thoughts and experiences through journal entries. By providing a title and content, users can create personalized entries that are stored and retrievable for future reference.</p>\n","urlObject":{"protocol":"https","path":["journals",""],"host":["cozypages","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6bf464d3-4d09-4e7f-972e-1be14b73cc7f"},{"name":"list all your journals","id":"4133a73c-f421-46f1-b58a-1e1b75f26c36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://cozypages.onrender.com/journals/","description":"<h2 id=\"get-journals\">Get Journals</h2>\n<p>This endpoint retrieves a list of journals from the CozyPages application. It is a simple HTTP GET request that does not require any request parameters.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p><strong>Method:</strong> GET</p>\n</li>\n<li><p><strong>URL:</strong> <code>https://cozypages.onrender.com/journals/</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful request, the API will return a JSON object with the following structure:</p>\n<ul>\n<li><p><strong>Status Code:</strong> 200</p>\n</li>\n<li><p><strong>Content-Type:</strong> application/json</p>\n</li>\n<li><p><strong>Response Body:</strong></p>\n<ul>\n<li><p><strong>message:</strong> A string that may contain any additional information or status messages (currently empty).</p>\n</li>\n<li><p><strong>data:</strong> An array of journal objects, each containing:</p>\n<ul>\n<li><p><strong>id:</strong> A unique identifier for the journal.</p>\n</li>\n<li><p><strong>title:</strong> The title of the journal.</p>\n</li>\n<li><p><strong>content:</strong> The content of the journal.</p>\n</li>\n<li><p><strong>created_at:</strong> The timestamp when the journal was created.</p>\n</li>\n<li><p><strong>updated_at:</strong> The timestamp when the journal was last updated.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"notes\">Notes</h3>\n<ul>\n<li><p>The <code>data</code> array may contain multiple journal objects, depending on the entries available in the system.</p>\n</li>\n<li><p>If there are no journals available, the <code>data</code> array will be empty.</p>\n</li>\n<li><p>Ensure that the request is made to the correct endpoint to receive the expected response.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["journals",""],"host":["cozypages","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4133a73c-f421-46f1-b58a-1e1b75f26c36"},{"name":"retrieve one journal by ID","id":"0ae72547-079f-4f83-a57d-a19bf6c885ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://cozypages.onrender.com/journals/1","description":"<h1 id=\"get-journal-entry-by-id\">Get Journal Entry by ID</h1>\n<p>This endpoint retrieves a specific journal entry based on the provided ID. It is useful for fetching detailed information about a journal entry, including its title, content, and timestamps.</p>\n<h2 id=\"request\">Request</h2>\n<ul>\n<li><p><strong>Method</strong>: <code>GET</code></p>\n</li>\n<li><p><strong>Endpoint</strong>: <code>https://cozypages.onrender.com/journals/{id}</code></p>\n</li>\n</ul>\n<h3 id=\"path-parameters\">Path Parameters</h3>\n<ul>\n<li><code>id</code> (integer): The unique identifier of the journal entry you wish to retrieve. In this example, the ID is <code>1</code>.</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<p>Upon a successful request, the server responds with a status code of <code>200</code> and a JSON object containing the journal entry details.</p>\n<h3 id=\"response-structure\">Response Structure</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": \"\",\n  \"data\": {\n    \"id\": 0,\n    \"title\": \"\",\n    \"content\": \"\",\n    \"created_at\": \"\",\n    \"updated_at\": \"\"\n  }\n}\n\n</code></pre>\n<h3 id=\"fields-in-response\">Fields in Response</h3>\n<ul>\n<li><p><code>message</code> (string): A message from the server, which may be empty if the request is successful.</p>\n</li>\n<li><p><code>data</code> (object): Contains the details of the journal entry.</p>\n<ul>\n<li><p><code>id</code> (integer): The unique identifier of the journal entry.</p>\n</li>\n<li><p><code>title</code> (string): The title of the journal entry.</p>\n</li>\n<li><p><code>content</code> (string): The content of the journal entry.</p>\n</li>\n<li><p><code>created_at</code> (string): The timestamp when the journal entry was created.</p>\n</li>\n<li><p><code>updated_at</code> (string): The timestamp when the journal entry was last updated.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"example\">Example</h2>\n<h3 id=\"request-1\">Request</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET https://cozypages.onrender.com/journals/1\n\n</code></pre><h3 id=\"response-1\">Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": \"\",\n  \"data\": {\n    \"id\": 1,\n    \"title\": \"My First Journal Entry\",\n    \"content\": \"This is the content of my first journal entry.\",\n    \"created_at\": \"2023-01-01T12:00:00Z\",\n    \"updated_at\": \"2023-01-02T12:00:00Z\"\n  }\n}\n\n</code></pre>\n<h2 id=\"notes\">Notes</h2>\n<ul>\n<li><p>Ensure that the ID provided in the request corresponds to an existing journal entry to receive a valid response.</p>\n</li>\n<li><p>If the journal entry does not exist, the server may return a different status code and message indicating the error.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["journals","1"],"host":["cozypages","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ae72547-079f-4f83-a57d-a19bf6c885ea"},{"name":"update a journal by ID","id":"569388fb-72f8-443e-8fb1-63c3346c9c2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"updated title\",\r\n    \"content\": \"updated content\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://cozypages.onrender.com/journals/5/update/","description":"<h1 id=\"update-journal-entry\">Update Journal Entry</h1>\n<p>This endpoint allows you to update an existing journal entry by providing the journal's ID in the URL. The request must include the updated title and content of the journal entry.</p>\n<h2 id=\"request\">Request</h2>\n<p><strong>Method:</strong> <code>PUT</code><br /><strong>URL:</strong> <code>https://cozypages.onrender.com/journals/{id}/update/</code><br />Replace <code>{id}</code> with the ID of the journal entry you wish to update.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>The request body must be in JSON format and include the following parameters:</p>\n<ul>\n<li><p><strong>title</strong> (string): The new title for the journal entry.</p>\n</li>\n<li><p><strong>content</strong> (string): The updated content of the journal entry.</p>\n</li>\n</ul>\n<h4 id=\"example-request-body\">Example Request Body</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"title\": \"updated title\",\n  \"content\": \"updated content\"\n}\n\n</code></pre>\n<h2 id=\"response\">Response</h2>\n<p>On a successful update, the API returns a response with a status code of <code>200</code> and the following structure:</p>\n<ul>\n<li><p><strong>message</strong> (string): A message indicating the result of the request (may be empty).</p>\n</li>\n<li><p><strong>data</strong> (object): An object containing the updated journal entry details:</p>\n</li>\n<li><p><strong>id</strong> (integer): The ID of the updated journal entry.</p>\n</li>\n<li><p><strong>title</strong> (string): The updated title of the journal entry.</p>\n</li>\n<li><p><strong>content</strong> (string): The updated content of the journal entry.</p>\n</li>\n<li><p><strong>created_at</strong> (string): The timestamp of when the journal entry was created.</p>\n</li>\n<li><p><strong>updated_at</strong> (string): The timestamp of when the journal entry was last updated.</p>\n</li>\n</ul>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": \"\",\n  \"data\": {\n    \"id\": 0,\n    \"title\": \"\",\n    \"content\": \"\",\n    \"created_at\": \"\",\n    \"updated_at\": \"\"\n  }\n}\n\n</code></pre>\n<h2 id=\"notes\">Notes</h2>\n<ul>\n<li><p>Ensure that the journal ID in the URL corresponds to an existing journal entry.</p>\n</li>\n<li><p>The title and content fields should not be empty.</p>\n</li>\n<li><p>This endpoint is intended for updating existing entries only; to create a new journal entry, use the appropriate POST endpoint.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["journals","5","update",""],"host":["cozypages","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"569388fb-72f8-443e-8fb1-63c3346c9c2a"},{"name":"delete a journal by ID","id":"ea19e29b-3eeb-423d-808b-4c146dd66d72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://cozypages.onrender.com/journals/5/delete/","description":"<h3 id=\"delete-journal-entry\">DELETE Journal Entry</h3>\n<p>This endpoint allows users to delete a specific journal entry identified by its unique ID. By sending a DELETE request to this endpoint, the user can remove the journal entry from the system permanently.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p><strong>Method:</strong> DELETE</p>\n</li>\n<li><p><strong>URL:</strong> <code>https://cozypages.onrender.com/journals/{id}/delete/</code></p>\n</li>\n</ul>\n<p><strong>Path Parameter:</strong></p>\n<ul>\n<li><code>id</code> (required): The unique identifier of the journal entry that you wish to delete. This should be a valid integer corresponding to the journal entry you want to remove.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>Upon successful deletion of the journal entry, the API will return a response indicating the outcome of the operation. The structure of the response includes:</p>\n<ul>\n<li><p><strong>status</strong>: A message indicating the success of the delete operation.(204 No Content)</p>\n</li>\n<li><p>If it fails</p>\n</li>\n</ul>\n<p>{ \"detail\": \"No Journals matches the given query.\"}</p>\n","urlObject":{"protocol":"https","path":["journals","5","delete",""],"host":["cozypages","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ea19e29b-3eeb-423d-808b-4c146dd66d72"},{"name":"Refresh Access Token","id":"e49b58d7-21ce-4ba0-8faa-e54bc280f52a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"refresh\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTc1NDgxMzM3NSwiaWF0IjoxNzU0NzI2OTc1LCJqdGkiOiJiNjk4OWMyYTFlZDQ0ZTQ4OWZjZmMxMjM4OGM3NDVkZiIsInVzZXJfaWQiOjF9.IOmA0XYZChiii_D5nQAozlgJjTFUBbzKVd6Tl1corUY\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://cozypages.onrender.com/token/refresh/","description":"<h2 id=\"refresh-token-endpoint\">Refresh Token Endpoint</h2>\n<p>This endpoint is used to refresh an existing access token using a valid refresh token. It allows clients to obtain a new access token without requiring the user to log in again, thereby enhancing user experience and maintaining session continuity.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p><strong>Method</strong>: <code>POST</code></p>\n</li>\n<li><p><strong>Endpoint</strong>: <code>https://cozypages.onrender.com/token/refresh/</code></p>\n</li>\n</ul>\n<h3 id=\"request-body\">Request Body</h3>\n<p>The request must include a JSON payload with the following parameter:</p>\n<ul>\n<li><strong>refresh</strong> (string): The refresh token that is used to generate a new access token. This token must be valid and not expired.</li>\n</ul>\n<p><strong>Example Request Body:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"refresh\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6Ik ...\"\n}\n\n</code></pre>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful processing of the request, the server will respond with a status of <code>200</code> and the expected response format is typically JSON, containing the following keys:</p>\n<ul>\n<li><p><strong>access</strong> (string): The newly generated access token.</p>\n</li>\n<li><p><strong>refresh</strong> (string): The refresh token that can be used for future requests.</p>\n</li>\n</ul>\n<p><strong>Example Response:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"access\": \"\",\n  \"refresh\": \"\"\n}\n\n</code></pre>\n<h3 id=\"notes\">Notes</h3>\n<ul>\n<li><p>Ensure that the refresh token is valid and has not expired to receive a new access token.</p>\n</li>\n<li><p>The response will only include the new access token and refresh token if the refresh token is valid.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["token","refresh",""],"host":["cozypages","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e49b58d7-21ce-4ba0-8faa-e54bc280f52a"},{"name":"journal search","id":"e657a58a-5769-420a-b82a-dcd58d21049d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://cozypages.onrender.com/journals/search/last/","description":"<h3 id=\"endpoint-description\">Endpoint Description</h3>\n<p>This endpoint retrieves the most recent journal entries from the CozyPages application. It is designed to provide users with quick access to the latest journal content, facilitating easy tracking of updates and new entries.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p><strong>Method</strong>: GET</p>\n</li>\n<li><p><strong>URL</strong>: <code>https://cozypages.onrender.com/journals/search/last/</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p><strong>Status Code</strong>: 200 OK</p>\n</li>\n<li><p><strong>Content-Type</strong>: application/json</p>\n</li>\n</ul>\n<h4 id=\"response-structure\">Response Structure</h4>\n<p>The response will return a JSON object containing the following fields:</p>\n<ul>\n<li><p><strong>message</strong>: A string that may contain any additional information or error messages (currently empty).</p>\n</li>\n<li><p><strong>data</strong>: An array of journal entries, where each entry includes:</p>\n<ul>\n<li><p><strong>id</strong>: A unique identifier for the journal entry (integer).</p>\n</li>\n<li><p><strong>title</strong>: The title of the journal entry (string).</p>\n</li>\n<li><p><strong>content</strong>: The content of the journal entry (string).</p>\n</li>\n<li><p><strong>created_at</strong>: The timestamp indicating when the journal entry was created (string).</p>\n</li>\n<li><p><strong>updated_at</strong>: The timestamp indicating when the journal entry was last updated (string).</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"example-response\">Example Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": \"\",\n  \"data\": [\n    {\n      \"id\": 0,\n      \"title\": \"\",\n      \"content\": \"\",\n      \"created_at\": \"\",\n      \"updated_at\": \"\"\n    }\n  ]\n}\n\n</code></pre>\n<p>This structure allows clients to easily parse and utilize the latest journal entries for display or further processing.</p>\n","urlObject":{"protocol":"https","path":["journals","search","last",""],"host":["cozypages","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e657a58a-5769-420a-b82a-dcd58d21049d"},{"name":"Journals summary","id":"b68fa4bc-ad70-43da-a4b8-d57a4c7f73c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"text\": \"Today I walked in the park and reflected on my week. It was peaceful. Oh and i met this cute dog he is so cuteeeeeeeeeeee\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://cozypages.onrender.com/journals/summary/","description":"<h2 id=\"endpoint-description\">Endpoint Description</h2>\n<p>This endpoint allows users to generate a summary of a provided text input. By sending a POST request to <code>https://cozypages.onrender.com/journals/summary/</code>, users can receive a concise summary of their text.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p><strong>Method:</strong> POST</p>\n</li>\n<li><p><strong>URL:</strong> <code>https://cozypages.onrender.com/journals/summary/</code></p>\n</li>\n<li><p><strong>Request Body Format:</strong> The request must include a JSON object with the following structure:</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"text\": \"string\"\n}\n\n</code></pre>\n<ul>\n<li><p><strong>Parameters:</strong></p>\n<ul>\n<li><code>text</code> (string): The text that you want to summarize. This should be a descriptive passage or content that you wish to condense.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p><strong>Status Code:</strong> 200</p>\n</li>\n<li><p><strong>Content-Type:</strong> application/json</p>\n</li>\n<li><p><strong>Response Structure:</strong> The response will be a JSON object that includes the summary of the provided text in the following format:</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"summary\": \"string\"\n}\n\n</code></pre>\n<ul>\n<li><p><strong>Parameters:</strong></p>\n<ul>\n<li><code>summary</code> (string): This field contains the generated summary of the input text. If the summarization process does not yield a result, this field may be empty.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"example\">Example</h3>\n<p><strong>Request:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"text\": \"Today I walked in the park and ...\"\n}\n\n</code></pre>\n<p><strong>Response:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"summary\": \"\"\n}\n\n</code></pre>\n<p>This endpoint is useful for users looking to quickly distill longer texts into shorter summaries for easier consumption or review.</p>\n","urlObject":{"protocol":"https","path":["journals","summary",""],"host":["cozypages","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b68fa4bc-ad70-43da-a4b8-d57a4c7f73c0"},{"name":"logout(Blacklist Refresh Token)","id":"110adf16-dbb8-4b9f-8d76-d8359b04f9b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"refresh\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTc1NDgxMzk2OSwiaWF0IjoxNzU0NzI3NTY5LCJqdGkiOiJlN2IxMDdlNWM3MjM0YTY5YWE4YzI1NWUwNjU4ODExZSIsInVzZXJfaWQiOjF9.p3xqmuEW_W74u9_SrrgnJ9usbygEuPXt8ZmGD5nRgs8\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://cozypages.onrender.com/logout/","description":"<h2 id=\"logout-endpoint\">Logout Endpoint</h2>\n<p>This endpoint allows users to log out of their session by invalidating their refresh token.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p><strong>Method</strong>: POST</p>\n</li>\n<li><p><strong>URL</strong>: <code>https://cozypages.onrender.com/logout/</code></p>\n</li>\n<li><p><strong>Request Body</strong>: The request must include a JSON payload with the following parameter:</p>\n<ul>\n<li><code>refresh</code> (string): The refresh token used to authenticate the session that is to be terminated.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"example-request-body\">Example Request Body</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"refresh\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6Ik ...\"\n}\n\n</code></pre>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p><strong>Status Code</strong>: 205 (Reset Content)</p>\n</li>\n<li><p><strong>Content-Type</strong>: application/json</p>\n</li>\n<li><p><strong>Response Body</strong>: The response will contain a JSON object with a message key:</p>\n<ul>\n<li><p><code>message</code> (string): This will be an empty string indicating that the logout action was successful.</p>\n</li>\n<li><p>{<br />  \"message\": \"Logged out successfully\"<br />  }</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"notes\">Notes</h3>\n<ul>\n<li><p>Ensure that the refresh token provided is valid; otherwise, the logout may not be processed correctly.</p>\n</li>\n<li><p>A successful logout will invalidate the refresh token, and the user will need to log in again to obtain a new token.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["logout",""],"host":["cozypages","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"110adf16-dbb8-4b9f-8d76-d8359b04f9b9"}]}