Interactive Documentation

API Documentation

Explore our collection of APIs with interactive Swagger UI and detailed guides

Getting Started with API Keys
Follow these simple steps to integrate our APIs into your applications

PortSmith provides a unified API gateway that simplifies access to multiple APIs through a single platform. Each API requires an API key for authentication, which you can easily generate and manage from your dashboard.

1
Generate API Key

Navigate to your Dashboard and click "Create New Key". Select the API you want to access and set any required permissions.

sk_live_1234567890abcdef
2
Add to HTML Form

Include your API key in the request headers when making API calls from your HTML form or JavaScript.

<script>
  fetch('/api-slug', {
    headers: {
      'X-API-Key': 'your-key'
    }
  })
</script>
3
Make API Calls

Send requests to the API endpoint through our gateway. Monitor usage and view analytics in your dashboard.

POST https://api.portsmith.dev/weather-api
Go to Dashboard

Need More Help?

Check out our detailed guides for each API below, or visit our support page to request a new API integration.

How to Create a Free API Key
Watch this quick tutorial to learn how to create and manage your API keys