---
id: scope-domain-create
title: "Create a custom domain"
description: "Create a custom domain for a scope."
sidebar_label: "Create a custom domain"
hide_title: true
hide_table_of_contents: true
api: eJzdWFFv2zYQ/isEnzZAdmTHWQMBeUjTDsse2iBxsGJJEJzJs8VWIlWSSuoa+u/FkXIsxe7qh3bFBgSKIh3vPt5934mXFZfohFWVV0bzjJ9ZBI8MmKidNyWTpgSl2dxYBswJU+GQJ9xUaIFWnEue8fD4PlpmIjjgCfewcDy74WddR/wu4Q5FbZVf8uxmxWcIFu1p7XOe3dw1dwm3+LFG518aueTZigujPWpPt1BVhRIh7sF7R3BX3IkcS6A7v6yQZ9zM3qPwPPpRFiVh0FAGSGSStHiVJDCVpb14hS56a99s/DlvlV7w5FmepjnGdLDzV8zn4JnPsZ80x5Rj4JwRCjxK9qh8PqTs4Scoq4Kcj8aHE94kEd9eMcmSmfl2tL5jqNRQ2GXlzUBpMRSmpDDR/T5hyGIdpvV/qymCrktKaNg65W8TMj5qKIzymyevwupIK9409N6iq4x2MeXjdEK/tiE8cYw9gmOuFgKdm9cFbfS7kEJJnvSYsUWHfYnQwTB4VBJZrdXHOlCDhPONWuGLY0jleDQ4FJPjwYvJeDQ4Hgk5GKeHczyezI5x8uK/QhK+gxGk+AKFN3ZXRXbIqrX+eu76VTJ2AVp9DunfW7vdRez81TNZhnRbvZ+rN5dvKAuovfLLvqNulJNRBkKYWvuTcUYVchUIPDnMOuw5Cd3g53QhUqbz4Gu3Z9xgu6P+bYsA4dUDaatCLclJr1u0b5uExw+GvAe/X9zzq7eD49/SEbuenjGvSnQeyopwPOaotxMQ2kcbhPDNjS0pFpfgcUAOeskYp+OjQToapONpmmbh52+CWVfyx8MswHnWRtob6/gZ1t0d+LJtum0Pnrx7t912zwqF2jO01lj21KWZrJF5w5R+gEJJpnRVe2YsK5VzSi9YBRZK9Gjdd+vNkVxnRoYNEx6e8BKdg8WOPt2x3vhV2uMC7VZx/phOL9bkFUYis1hZdCRfvQh1cRUKNVeCiW4+fsHhYpiwSZrSZUSXQ7pMfu2paZKmROo+lq/w5JSVIHKlcWARJMwKbGMFXEHPAjwujFWf0UVsaB/QsjmoorbY1/EM5H17eiLGxrTtAWJmFc4Tltcl6A2SjtVa5BFcaPttNm75S5DsMga95fTgWkPt8wBZ3vJ+crrWBHFd0W+DlFLRLRRMogdVOAYzU/sNrH4cUmCbiiCsEgrSEkoWsqs9KI3yidJdBjdNVMjRLoVcxfQ/V4jSMvBcLxhoppyrkZko8tOLc+aUxP+ZNFw3ES0ZjkgaR+mYLof9wh/9PFXQZq2G4j4a3ceU/Wv6OG/Ds5Y6r8kmKoWeKIHsWsMDqIK8bglm5/IfKp1TzWqNnyoUdFyIWzJC1NaiHLKLAsEh83bJYEGfrQI82rVqAi6fG5oKK+OIuhXQaMcPukMizWBhOy7MgLUteMZz7yuXHRzQqVTXRVEV4Emz8VzamRuvSCaR3d3p8SkP5ChMeWRGbTEY8aS9+X39Tf3zr2n4WJL8LjdD5+t1JrrjYDwjrc/gu07OyVMZ1qdepeeGvNA+YylGw3SY8s3n+U1nm9QoaBWlrYTQD9pgu0fy53XuTMp7DvEtXo+f/EFVkEs65lAtVm3VbnqjPTWXnIqa3fDVagYOr23RNPT4Y42W5vm7hD+AVcTkMM4nPEeQaEOZP+CSsEWUg2mcxR+gqGNGn/XDJlmvOBUCK/+Ptncd3l28vZpSsdv/H5Sh53ALj9RH4ZFnPPwDg1YHDoVnK16AXtRBUDz6JGpAn1nPmBR21b4CvewgXK2ixdR8QN00PGm34ulv3tw1TfMFyUn70g==
sidebar_class_name: "post api-method"
info_path: docs/api/nullplatform-api
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Create a custom domain"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/scope_domain"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Create a custom domain for a scope.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={undefined}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"content":{"application/json":{"schema":{"type":"object","required":["name","type","scope_id"],"properties":{"scope_id":{"type":"string","description":"The scope ID that the custom domains is associated with..","example":"1234"},"name":{"type":"string","description":"The name of the custom domain.","example":"api.crypto-inc.com"},"type":{"type":"string","description":"The type of the domain.\n","enum":["scope"],"example":"scope"}},"title":"scopeDomainCreate"}}}}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"204":{"description":"The operation was successful.","content":{"application/json":{"schema":{"type":"object","required":["id","name","type"],"properties":{"id":{"type":"string","description":"The application-wide unique ID for the custom domain.","example":"e78a0d21-3c48-7421-81cd-203fe84b8e47"},"name":{"type":"string","description":"The name of the custom domain.","example":"api.crypto-inc.com"},"type":{"type":"string","description":"The type of the domain.","example":"scope"},"selector":{"type":"object","description":"The selector for the custom domain.","properties":{"organization_id":{"type":"string","description":"The organization ID.","example":"1"},"nrn":{"type":"string","description":"The NRN of entity.","example":"organization=1:account=2:namespace=3:application=4"},"scope_id":{"type":"string","description":"The scope ID that the custom domains is associated with..","example":"1234"}}},"status":{"type":"string","description":"The status of the domain.","enum":["active","pending"],"example":"active"},"created_at":{"type":"string","description":"The ISO-8601 UTC timestamp of when the custom domain was created.","format":"date-time","example":"2025-01-02T00:00:00Z"},"updated_at":{"type":"string","description":"The ISO-8601 UTC timestamp of when the custom domain was last updated.","format":"date-time","example":"2025-02-02T00:00:00Z"}},"title":"scopeDomainResponse"}}}},"4XX":{"description":"Client error responses due to invalid input or missing parameters.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific client error (e.g., 400, 401, 403, 404).","example":400},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"bad_request"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Bad Request\", \"Unauthorized\").","example":"Bad Request"},"message":{"type":"string","description":"Additional details about the error.","example":"The request was malformed or contained invalid parameters."}}}}}},"5XX":{"description":"Server error responses indicating an issue on the API side.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific server error (e.g., 500, 502, 503).","example":500},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"internal_server_error"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Internal Server Error\", \"Service Unavailable\").","example":"Internal Server Error"},"message":{"type":"string","description":"Additional details about the error.","example":"An unexpected error occurred. Please try again later."}}}}}}}}
>
  
</StatusCodes>


      