- Welcome 👋
- Get Started
- Create Your First App
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- APIs
- Orders
- Order Status
- Order Histories
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Abandoned Carts
- Customer Groups
- Customers
- Digitals Product
- Categories
- Exports
- Shipments
- Shipping Companies
- Shipping Zones
- Shipping Rules
- Countries
- Product Option Templates
- Taxes
- Coupons
- Affiliates
- Order Assignment
- Special Offers
- Transactions
- Payments
- Settlements
- Settings
- Merchant
- Brands
- Reviews
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Webhooks - Store Events
Create DNS Record
Production
Production
POST
https://api.salla.dev/admin/v2/dns-records
DNS Records
Last modified:2025-03-18 08:33:14
Information
Scopes
dns-records.read_write
- DNS Records Read & WriteRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Body Params application/json
type
enum<string>Â
required
Allowed values:
A AAAA CNAME SPF TXT MX
name
stringÂ
required
value
stringÂ
required
priority
integerÂ
optional
type = MX
Example
{
"type": "MX",
"name": "blog",
"value": "blog.yourwebsite.com",
"priority": 0
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.salla.dev/admin/v2/dns-records' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "MX",
"name": "blog",
"value": "blog.yourwebsite.com",
"priority": 0
}'
Responses
🟢200Success
application/json
Body
status
numberÂ
optional
success
booleanÂ
optional
data
object (DNS)Â
optional
id
numberÂ
required
type
enum<string>Â
required
Allowed values:
A AAAA CNAME SPF TXT MX
name
stringÂ
required
content
stringÂ
required
priority
integerÂ
required
type = MX
.Example
{
"status": 200,
"success": true,
"data": {
"id": 358857001,
"type": "MX",
"name": "blog",
"content": "blog.yourwebsite.com",
"priority": 0
}
}
🟠401Unauthorized
Modified at 2025-03-18 08:33:14