API Reference
Create a Custom domain
/v1/config/domainCreates a custom domain configuration on your tenant. You can configure a custom domain for a specific MATTR VII tenant to represent your brand and instil trust with your end-users. Any MATTR VII tenant can only have one custom domain. Refer to our docs for more information.
Roles
Analytics Events
Authorization
bearerAuth In: header
The custom domain payload
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/config/domain" \ -H "Content-Type: application/json" \ -d '{ "name": "Example Corp", "logoUrl": "https://cdn.example.com/logo.jpg", "domain": "example.com" }'{ "name": "Example Corp", "logoUrl": "https://cdn.example.com/logo.jpg", "domain": "example.com", "verificationToken": "8c6f36c1-91ff-439d-a518-48cf7ef421ef", "isVerified": false}Retrieve Custom domain
/v1/config/domainReturns your tenant's custom domain configuration and its verification status.
Roles
Analytics Events
Authorization
bearerAuth In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/v1/config/domain"{ "name": "Example Corp", "logoUrl": "https://cdn.example.com/logo.icon", "domain": "example.com", "verificationToken": "8c6f36c1-91ff-439d-a518-48cf7ef421ef", "isVerified": true, "verifiedAt": "2024-01-31T20:31:48.340Z"}Update Custom domain
/v1/config/domainUpdates the custom domain configuration.
Roles
Analytics Events
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "https://example.com/v1/config/domain" \ -H "Content-Type: application/json" \ -d '{ "name": "Example Corp", "logoUrl": "https://cdn.example.com/logo.jpg", "domain": "example.com" }'{ "name": "Example Corp", "logoUrl": "https://cdn.example.com/logo.icon", "domain": "example.com", "verificationToken": "8c6f36c1-91ff-439d-a518-48cf7ef421ef", "isVerified": true, "verifiedAt": "2021-04-15T07:37:25.008Z"}Delete Custom domain
/v1/config/domainDeletes the custom domain configuration on your tenant.
Roles
Analytics Events
Authorization
bearerAuth In: header
Response Body
application/json
curl -X DELETE "https://example.com/v1/config/domain"Verify Custom domain
/v1/config/domain/verifyVerifies that you have control of the configured custom domain by examining its TXT record.
Roles
Analytics Events
Authorization
bearerAuth In: header
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/config/domain/verify"How would you rate this page?
Last updated on