openapi: 3.0.3 info: title: 'Hodhod Api V1 - Beta' description: '' version: 1.0.0 servers: - url: 'https://gohodhod.com' tags: - name: Newsletter description: '' - name: Issues description: '' - name: Subscribers description: '' components: securitySchemes: default: type: http scheme: bearer description: 'You can retrieve your token by visiting your dashboard and clicking Generate API token.' security: - default: [] paths: /api/v1/newsletter/profile-info: get: summary: 'Returns profile info for the newsletter.' operationId: returnsProfileInfoForTheNewsletter description: '' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: newsletter_id: 72 title: 'Repellendus sit fuga error non.' author: 'Winfield Yost' description: 'Consequatur facere deserunt voluptatem iure error quia quo nihil beatae numquam enim et.' image: 'https://gohodhod.com/images/img-avatar-newsletter.png' primary_color: '#13b981' slug: lincoln59 profile_url: 'https://gohodhod.com/@lincoln59' externa_links: null properties: newsletter_id: type: integer example: 72 title: type: string example: 'Repellendus sit fuga error non.' author: type: string example: 'Winfield Yost' description: type: string example: 'Consequatur facere deserunt voluptatem iure error quia quo nihil beatae numquam enim et.' image: type: string example: 'https://gohodhod.com/images/img-avatar-newsletter.png' primary_color: type: string example: '#13b981' slug: type: string example: lincoln59 profile_url: type: string example: 'https://gohodhod.com/@lincoln59' externa_links: type: string example: null nullable: true tags: - Newsletter patch: summary: 'Update profile info for the newsletter.' operationId: updateProfileInfoForTheNewsletter description: '' parameters: [] responses: {} tags: - Newsletter requestBody: required: false content: application/json: schema: type: object properties: title: type: string description: '' example: 'نشرة هدهد البريدية' author: type: string description: 'يجب ألا يتجاوز 255 حرفًا' example: 'عماد الدين' nullable: true description: type: string description: 'يجب ألا يتجاوز 512 حرفًا' example: 'Eaque ab repellendus perspiciatis esse aut laborum cum.' nullable: true primary_color: type: string description: '(hex) يجب أن يكون كود لوني صحيح' example: '#146ec2' nullable: true slug: type: string description: 'لاحقة النشرة على هدهد (يمكن أن تحوي فقط أحرف لاتينية، أرقام، شرطة أفقية أو شرطة تحتية؟)' example: eum /api/v1/newsletter/profile-image: post: summary: "Update newsletter's profile image." operationId: updateNewslettersProfileImage description: '' parameters: [] responses: 200: description: '' content: application/json: schema: type: boolean example: true tags: - Newsletter requestBody: required: true content: multipart/form-data: schema: type: object properties: image: type: string format: binary description: 'Must be an image. Must not be greater than 512 kilobytes.' required: - image /api/v1/issues: get: summary: "Fetch a listing of the newsletter's issues." operationId: fetchAListingOfTheNewslettersIssues description: '' parameters: - in: query name: status description: '(optional) Filters issue based on status. Can only be: "draft", "published" or "scheduled"' example: null required: false schema: type: string description: '(optional) Filters issue based on status. Can only be: "draft", "published" or "scheduled"' example: null responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 57 subject: 'Explicabo sint rem qui sequi rem.' number: 3 description: null created_at: '2026-11-17T09:52:39.000000Z' updated_at: '2026-11-17T09:52:39.000000Z' published_at: null is_published: false is_scheduled: false - id: 58 subject: 'Vel non hic nihil aut autem error iure eius.' number: 1 description: null created_at: '2026-11-17T09:52:39.000000Z' updated_at: '2026-11-17T09:52:39.000000Z' published_at: '2026-11-19T09:52:39.000000Z' is_published: false is_scheduled: true links: first: '/?page=1' last: null prev: null next: null meta: current_page: 1 current_page_url: '/?page=1' from: 1 path: / per_page: '50' to: 2 properties: data: type: array example: - id: 57 subject: 'Explicabo sint rem qui sequi rem.' number: 3 description: null created_at: '2026-11-17T09:52:39.000000Z' updated_at: '2026-11-17T09:52:39.000000Z' published_at: null is_published: false is_scheduled: false - id: 58 subject: 'Vel non hic nihil aut autem error iure eius.' number: 1 description: null created_at: '2026-11-17T09:52:39.000000Z' updated_at: '2026-11-17T09:52:39.000000Z' published_at: '2026-11-19T09:52:39.000000Z' is_published: false is_scheduled: true items: type: object properties: id: type: integer example: 57 subject: type: string example: 'Explicabo sint rem qui sequi rem.' number: type: integer example: 3 description: type: string example: null nullable: true created_at: type: string example: '2026-11-17T09:52:39.000000Z' updated_at: type: string example: '2026-11-17T09:52:39.000000Z' published_at: type: string example: null nullable: true is_published: type: boolean example: false is_scheduled: type: boolean example: false links: type: object properties: first: type: string example: '/?page=1' last: type: string example: null nullable: true prev: type: string example: null nullable: true next: type: string example: null nullable: true meta: type: object properties: current_page: type: integer example: 1 current_page_url: type: string example: '/?page=1' from: type: integer example: 1 path: type: string example: / per_page: type: string example: '50' to: type: integer example: 2 tags: - Issues '/api/v1/issues/{issue_id}': get: summary: 'Fetch the specified issue.' operationId: fetchTheSpecifiedIssue description: '' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: id: 59 subject: 'Occaecati temporibus totam voluptas.' number: 1 description: null html_content: null created_at: '2026-11-17T09:52:39.000000Z' updated_at: '2026-11-17T09:52:39.000000Z' published_at: null is_published: false is_scheduled: false properties: id: type: integer example: 59 subject: type: string example: 'Occaecati temporibus totam voluptas.' number: type: integer example: 1 description: type: string example: null nullable: true html_content: type: string example: null nullable: true created_at: type: string example: '2026-11-17T09:52:39.000000Z' updated_at: type: string example: '2026-11-17T09:52:39.000000Z' published_at: type: string example: null nullable: true is_published: type: boolean example: false is_scheduled: type: boolean example: false tags: - Issues delete: summary: 'Remove the specified issue from storage.' operationId: removeTheSpecifiedIssueFromStorage description: '' parameters: [] responses: 200: description: '' content: application/json: schema: type: boolean example: true tags: - Issues parameters: - in: path name: issue_id description: 'The ID of the issue.' example: 1 required: true schema: type: integer '/api/v1/issues/{issue_id}/publish': post: summary: 'Publish the specified issue immediatly.' operationId: publishTheSpecifiedIssueImmediatly description: '' parameters: [] responses: 200: description: '' content: application/json: schema: type: boolean example: true tags: - Issues parameters: - in: path name: issue_id description: 'The ID of the issue.' example: 1 required: true schema: type: integer '/api/v1/issues/{issue_id}/schedule': post: summary: 'Schedue the specified issue for publish.' operationId: schedueTheSpecifiedIssueForPublish description: '' parameters: - in: query name: published_at description: 'The date and time when the issue should be published. Should be a valid datetime string and in the future (after current datetime).' example: '2023-01-01 00:00:00' required: true schema: type: string description: 'The date and time when the issue should be published. Should be a valid datetime string and in the future (after current datetime).' example: '2023-01-01 00:00:00' responses: 200: description: '' content: application/json: schema: type: boolean example: true tags: - Issues parameters: - in: path name: issue_id description: 'The ID of the issue.' example: 1 required: true schema: type: integer '/api/v1/issues/{issue_id}/cancel-schedule': post: summary: 'Cancel scheduling for the specified issue.' operationId: cancelSchedulingForTheSpecifiedIssue description: '' parameters: [] responses: 200: description: '' content: application/json: schema: type: boolean example: true tags: - Issues parameters: - in: path name: issue_id description: 'The ID of the issue.' example: 1 required: true schema: type: integer /api/v1/subscribers: get: summary: "Fetch a listing of newsletter's subscribers." operationId: fetchAListingOfNewslettersSubscribers description: '' parameters: - in: query name: status description: '(optional) Filters subscribers based on status. Can only be: "subscribed", "unsubscribed" or "supressed"' example: null required: false schema: type: string description: '(optional) Filters subscribers based on status. Can only be: "subscribed", "unsubscribed" or "supressed"' example: null responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 297 email: upurdy@example.net first_name: Michaela last_name: Sanford source: embed created_at: '2026-11-17T09:52:39.000000Z' updated_at: '2026-11-17T09:52:39.000000Z' unsubscribed_at: '2026-11-17T09:52:39.000000Z' suppressed_at: '2026-11-17T09:52:39.000000Z' - id: 298 email: lubowitz.rory@example.net first_name: Stella last_name: Emard source: import created_at: '2026-11-17T09:52:39.000000Z' updated_at: '2026-11-17T09:52:39.000000Z' unsubscribed_at: null suppressed_at: '2026-11-17T09:52:39.000000Z' links: first: '/?page=1' last: null prev: null next: null meta: current_page: 1 current_page_url: '/?page=1' from: 1 path: / per_page: '50' to: 2 properties: data: type: array example: - id: 297 email: upurdy@example.net first_name: Michaela last_name: Sanford source: embed created_at: '2026-11-17T09:52:39.000000Z' updated_at: '2026-11-17T09:52:39.000000Z' unsubscribed_at: '2026-11-17T09:52:39.000000Z' suppressed_at: '2026-11-17T09:52:39.000000Z' - id: 298 email: lubowitz.rory@example.net first_name: Stella last_name: Emard source: import created_at: '2026-11-17T09:52:39.000000Z' updated_at: '2026-11-17T09:52:39.000000Z' unsubscribed_at: null suppressed_at: '2026-11-17T09:52:39.000000Z' items: type: object properties: id: type: integer example: 297 email: type: string example: upurdy@example.net first_name: type: string example: Michaela last_name: type: string example: Sanford source: type: string example: embed created_at: type: string example: '2026-11-17T09:52:39.000000Z' updated_at: type: string example: '2026-11-17T09:52:39.000000Z' unsubscribed_at: type: string example: '2026-11-17T09:52:39.000000Z' suppressed_at: type: string example: '2026-11-17T09:52:39.000000Z' links: type: object properties: first: type: string example: '/?page=1' last: type: string example: null nullable: true prev: type: string example: null nullable: true next: type: string example: null nullable: true meta: type: object properties: current_page: type: integer example: 1 current_page_url: type: string example: '/?page=1' from: type: integer example: 1 path: type: string example: / per_page: type: string example: '50' to: type: integer example: 2 tags: - Subscribers post: summary: 'Store a newly created subscriber in storage.' operationId: storeANewlyCreatedSubscriberInStorage description: '' parameters: [] responses: 200: description: '' content: application/json: schema: type: boolean example: true tags: - Subscribers requestBody: required: true content: application/json: schema: type: object properties: email: type: string description: 'Must be a valid email address.' example: lessie.lind@example.net first_name: type: string description: '' example: tempore nullable: true last_name: type: string description: '' example: veniam nullable: true source: type: string description: '' example: debitis nullable: true unsubscribed_at: type: string description: 'Must be a valid date.' example: '2026-11-17T09:52:39' nullable: true suppressed_at: type: string description: 'Must be a valid date.' example: '2026-11-17T09:52:39' nullable: true group: type: string description: 'optional Group name to create (if missing) and attach the subscriber to.' example: VIP nullable: true required: - email '/api/v1/subscribers/{subscriber_id}': get: summary: 'Fetch the specified subscriber.' operationId: fetchTheSpecifiedSubscriber description: "Look up a subscriber by their numeric ID or by their email address,\ne.g. `GET /api/v1/subscribers/42` or `GET /api/v1/subscribers/jane@example.com`.\nEmail matching is exact (not partial) and case-insensitive. If the email contains a `+`,\nURL-encode it as `%2B`. Returns 404 when no subscriber of this newsletter matches." parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: id: 299 email: mruecker@example.com first_name: Syble last_name: Weimann source: profile created_at: '2026-11-17T09:52:39.000000Z' updated_at: '2026-11-17T09:52:39.000000Z' unsubscribed_at: null suppressed_at: null properties: id: type: integer example: 299 email: type: string example: mruecker@example.com first_name: type: string example: Syble last_name: type: string example: Weimann source: type: string example: profile created_at: type: string example: '2026-11-17T09:52:39.000000Z' updated_at: type: string example: '2026-11-17T09:52:39.000000Z' unsubscribed_at: type: string example: null nullable: true suppressed_at: type: string example: null nullable: true tags: - Subscribers put: summary: 'Update the specified subscriber in storage.' operationId: updateTheSpecifiedSubscriberInStorage description: 'The subscriber can be identified by numeric ID or by email address (see "Fetch the specified subscriber").' parameters: [] responses: 200: description: '' content: application/json: schema: type: boolean example: true tags: - Subscribers requestBody: required: false content: application/json: schema: type: object properties: email: type: string description: 'Must be a valid email address.' example: zelma.schultz@example.org first_name: type: string description: '' example: dolores nullable: true last_name: type: string description: '' example: laudantium nullable: true source: type: string description: '' example: dolorum nullable: true unsubscribed_at: type: string description: 'Must be a valid date.' example: '2026-11-17T09:52:39' nullable: true suppressed_at: type: string description: 'Must be a valid date.' example: '2026-11-17T09:52:39' nullable: true delete: summary: 'Remove the specified subscriber from storage.' operationId: removeTheSpecifiedSubscriberFromStorage description: 'The subscriber can be identified by numeric ID or by email address (see "Fetch the specified subscriber").' parameters: [] responses: 200: description: '' content: application/json: schema: type: boolean example: true tags: - Subscribers parameters: - in: path name: subscriber_id description: "The subscriber's ID, or their email address." example: '1' required: true schema: type: string '/api/v1/subscribers/{subscriber_id}/unsubscribe': post: summary: 'Unsubscribe the specified subscriber from the newsletter.' operationId: unsubscribeTheSpecifiedSubscriberFromTheNewsletter description: 'The subscriber can be identified by numeric ID or by email address (see "Fetch the specified subscriber").' parameters: [] responses: 200: description: '' content: application/json: schema: type: boolean example: true tags: - Subscribers parameters: - in: path name: subscriber_id description: "The subscriber's ID, or their email address." example: '1' required: true schema: type: string '/api/v1/subscribers/{subscriber_id}/resubscribe': post: summary: 'Resubscribe the specified subscriber to the newsletter.' operationId: resubscribeTheSpecifiedSubscriberToTheNewsletter description: 'The subscriber can be identified by numeric ID or by email address (see "Fetch the specified subscriber").' parameters: [] responses: 200: description: '' content: application/json: schema: type: boolean example: true tags: - Subscribers parameters: - in: path name: subscriber_id description: "The subscriber's ID, or their email address." example: '1' required: true schema: type: string