useGrant
Domains

Verify domain

Verify a domain by its ID.

POST
/v1/providers/{providerId}/domains/{domainId}/verify

Authorization

AuthorizationBearer <token>

In: header

Path Parameters

providerIdstring

Unique identifier for a provider.

Format"uuid"
domainIdstring

Unique identifier for a domain.

Format"uuid"

Response Body

Domain verified successfully.

TypeScript Definitions

Use the response body type in TypeScript.

id?string

Unique identifier for a domain.

Format"uuid"
name?string

Name of the domain.

verified?boolean

Invalid request parameters.

TypeScript Definitions

Use the response body type in TypeScript.

codestring
messagestring

Missing or invalid or expired auth token.

TypeScript Definitions

Use the response body type in TypeScript.

codestring
messagestring

Resource not found.

TypeScript Definitions

Use the response body type in TypeScript.

codestring
messagestring

Internal server error.

TypeScript Definitions

Use the response body type in TypeScript.

codestring
messagestring
curl -X POST "https://sdk.usegrant.dev/v1/providers/497f6eca-6276-4993-bfeb-53cbbbba6f08/domains/497f6eca-6276-4993-bfeb-53cbbbba6f08/verify" \
  -H "Authorization: Bearer <token>"
fetch("https://sdk.usegrant.dev/v1/providers/497f6eca-6276-4993-bfeb-53cbbbba6f08/domains/497f6eca-6276-4993-bfeb-53cbbbba6f08/verify", {
  headers: {
    "Authorization": "Bearer <token>"
  }
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://sdk.usegrant.dev/v1/providers/497f6eca-6276-4993-bfeb-53cbbbba6f08/domains/497f6eca-6276-4993-bfeb-53cbbbba6f08/verify"

  req, _ := http.NewRequest("POST", url, nil)
  req.Header.Add("Authorization", "Bearer <token>")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://sdk.usegrant.dev/v1/providers/497f6eca-6276-4993-bfeb-53cbbbba6f08/domains/497f6eca-6276-4993-bfeb-53cbbbba6f08/verify"

response = requests.request("POST", url, headers = {
  "Authorization": "Bearer <token>"
})

print(response.text)
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "verified": true
}
{
  "code": "string",
  "message": "string"
}
{
  "code": "string",
  "message": "string"
}
{
  "code": "string",
  "message": "string"
}
{
  "code": "string",
  "message": "string"
}