Add domain

Description

Summary: Registers a new domain in your TextPeak account. Details: This endpoint creates a new domain resource with the specified name. Once created, the domain will go through a verification process. You can check its status and DNS records using the Get domain endpoint. The domain name should be a valid domain string (e.g., example.com).

Authentication & Scopes

Authentication is handled via an API key provided in the Authorization header. No OAuth scopes are defined; access is granted or denied based on the validity of the key.

MethodDetails
API KeyPass your API key directly in the Authorization header value (not as a Bearer token).

Headers

HeaderRequiredDescription
AuthorizationYesThe API key that verifies your access to the API.
Content-TypeYesMust be application/json.
acceptNoExpected response format. Default: application/json.

Parameters

This endpoint does not use query or path parameters.

Request Body

The request body must be a JSON object with the following properties:

PropertyTypeRequiredDescription
namestringYesThe domain name to register (e.g., example.com).
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json