DevSphere - Eco-Friendly Open-Source Hub
HomepageGetting Started
DevSphere - Eco-friendly Open-Source Codes Hub
DevSphere - Eco-friendly Open-Source Codes Hub
  • DevSphere on myHerb
  • DevSphere—Sustainable & Open-Source Developers Hub
    • DevSphere on GitHub
  • Integrations
    • Shopify + CometChat Integration Technical Documentation
  • myHerb Applications
    • myHerb Applications
      • SightScope: Measure Your Website's Sustainability Metrics
        • Application Code Generation & Structure
      • PrintLess Eco Metrics: Your Paper Consumption Sustainability Calculator
        • Structure - PrintLess Eco Metrics
        • PrintLess Eco MetriX (Beta v0.13)
      • Trimpact Reforestation (Demo)
      • Ec.reDucerr
      • EcoSense App: Driving Sustainability in Software Development
        • EcoSense EcoSense v3.3 BETA Documentation
  • Overview
    • Welcome to myHerb API Documentation
    • What we do at DevSphere
      • Web Sustainability Checker: Optimize Your Web Impact
      • myAIHerb Beta v0.11 Application is [Under Construction]
    • ✨Our Features
    • Unleashing the Potential of Amazon AWS and myHerb: A Path to Sustainable Growth
  • Product Guides
    • myAIHerb Sustainability Application
    • Test the website's sustainability with PageSpeed
    • Zapier Integration for Website Sustainability Testing
    • 📪Features for Sustainable Software Development
    • TreeWise.io: Trees Planting App development
      • How do I integrate CleanHub API?
  • Fundamentals
    • 🛠️Getting set up
      • 📝Setting permissions
      • 🧑Inviting Members
  • Use Cases
    • 🎨For Designers
    • 🖥️For Developers
Powered by GitBook
On this page
  • This documentation provides all the information you need to integrate with our API and make the most out of our services.
  • Getting Started
  • API Endpoints
  • Error Handling
  • Support
  • Additional Resources
Edit on GitHub
  1. Overview

Welcome to myHerb API Documentation

Welcome to the official documentation for the myHerb API.

This documentation provides all the information you need to integrate with our API and make the most out of our services.

Getting Started

To get started with the myHerb API, follow these steps:

  1. Sign Up: Create an account on our website.

  2. API Key: Obtain your API key from the dashboard.

  3. Read the Docs: Familiarize yourself with the API endpoints and usage.

API Endpoints

Authentication

  • POST /auth/login

    • Description: Authenticate a user and obtain a token.

    • Parameters:

      • username (string): The user's username.

      • password (string): The user's password.

    • Response:

      • token (string): The authentication token.

Herbs

  • GET /herbs

    • Description: Retrieve a list of all herbs.

    • Parameters: None

    • Response:

      • herbs (array): A list of herbs.

  • POST /herbs

    • Description: Add a new herb.

    • Parameters:

      • name (string): The name of the herb.

      • description (string): A description of the herb.

    • Response:

      • herb (object): The newly created herb.

Error Handling

Our API uses standard HTTP status codes to indicate the success or failure of an API request. Here are some standard status codes:

  • 200 OK: The request was successful.

  • 400 Bad Request: The request was invalid or cannot be served.

  • 401 Unauthorized: Authentication failed, or the user does not have permissions.

  • 404 Not Found: The requested resource could not be found.

  • 500 Internal Server Error: An error occurred on the server.

Support

If you have any questions or need further assistance, please get in touch with our support team at dev@myherb.co.il

Additional Resources

  • API Reference

  • Developer Guide

  • Community Forum

Thank you for using myHerb API!

PreviousEcoSense EcoSense v3.3 BETA DocumentationNextWhat we do at DevSphere

Last updated 7 months ago

Page cover image