Getting Started
DomainsGPT's REST API allows developers to easily integrate GPT-powered domain name generation into their applications.
The API supports any programming language or framework that can send HTTP requests.
We are currently beta testing this API with select partners. If you would like to be considered for early access, please apply here.
API Basics
Our API is exposed as an HTTP/1 and HTTP/2 service over SSL. All endpoints live under the URL https://api.oneword.domains
and then generally follow the REST architecture.
Authentication
DomainsGPT's API uses a token-based authentication system. You can find your API token in your DomainsGPT Dashboard.
Content Type
All requests must be encoded as JSON with the Content-Type: application/json header. If not otherwise specified, responses from the Vercel API, including errors, are encoded exclusively as JSON as well.
Rate Limits
The DomainsGPT API is rate limited to 1000 requests per minute per token. If you exceed this limit, you will receive a 429 Too Many Requests
response.
Quick Start
For normal RESTful APIs with JSON data, first you need to create a fetcher
function, which is just a wrapper of the native fetch
:
await fetch("https://api.oneword.domains/gpt/generate", {
"method": "POST",
"headers": {
"Authorization": "Bearer <TOKEN>",
"Content-Type": "application/json"
},
"body": JSON.stringify({
// Request parameters
})
})
Example
Here's a simple example of how to use the DomainsGPT API to generate brandable domains in your React application: