Morpha

Integrations

Integrate Morpha with external services and APIs

Integrations

Morpha integrates with several popular platforms and services to extend its functionality. This page guides you through setting up integrations with our supported platforms.

Resend.com

Resend is an email API service that allows your applications to send transactional emails. Integrating Resend with Morpha enables your apps to include email functionality.

Getting a Resend API Key

To connect Morpha with Resend, you'll need an API key. Follow these steps:

  1. Create a Resend account:

    • Visit Resend's signup page
    • Complete the registration process using your email, GitHub, or Google account
  2. Generate an API key:

    • Log in to your Resend dashboard
    • Navigate to the "API Keys" section
    • Click "Create API Key"
    • Give your key a meaningful name (e.g., "Morpha Integration")
    • Choose the appropriate permission level:
      • "Full Access" for complete control
      • "Sending Access" if you only need to send emails
    • If using "Sending Access", you can optionally restrict the key to a specific domain
  3. Copy your API key:

    • Store the API key securely as it will only be shown once
    • The key will start with re_ followed by a string of characters

Using Resend in Morpha

Once you have your Resend API key, you can add it to Morpha:

  1. Open your Morpha project
  2. Navigate to the "Integrations" section
  3. Select Resend from the available integrations
  4. Enter your API key in the provided field
  5. Click "Connect"

Now you can add email functionality to your Morpha-generated apps. For example, you can create contact forms, send confirmation emails, or implement password reset flows.

Hugging Face

Hugging Face is a platform that hosts thousands of machine learning models for various tasks like text generation, image recognition, and more. Integrating Hugging Face with Morpha lets you leverage these powerful AI models in your applications.

Getting a Hugging Face API Key

To connect Morpha with Hugging Face, you'll need to generate an API token:

  1. Create a Hugging Face account:

  2. Generate an API token:

    • Log in to your Hugging Face account
    • Click on your profile picture in the top-right corner
    • Select "Settings" from the dropdown menu
    • Navigate to the "Access Tokens" section
    • Click "New token"
    • Give your token a name (e.g., "Morpha Integration")
    • Select the appropriate permission level:
      • "Read" for using models only
      • "Write" if you need to upload or modify models
      • "Fine-grained" for more specific access controls
    • Click "Create token"
  3. Copy your API token:

    • Save the token in a secure location as it will only be shown once
    • The token will start with hf_ followed by a string of characters

Using Hugging Face in Morpha

After obtaining your Hugging Face API token, connect it to Morpha:

  1. Open your Morpha project
  2. Navigate to the "Integrations" section
  3. Select Hugging Face from the available integrations
  4. Enter your API token in the provided field
  5. Click "Connect"

With this integration, you can incorporate AI capabilities into your Morpha applications, such as:

  • Text generation and summarization
  • Language translation
  • Image classification and generation
  • Sentiment analysis
  • Question answering

Security Best Practices

When working with API keys and tokens, follow these security practices:

  • Never expose your API keys in client-side code
  • Store keys in environment variables or secure storage
  • Use the minimum required permissions for each key
  • Rotate keys periodically
  • Monitor API usage for unusual activity
  • Never commit API keys to version control systems

By following these practices, you'll help ensure the security of your integrations and the data they access.

On this page