Skip to main content
POST
/
environments
/
{environmentId}
/
origins
Adds an allowed origin for this project environment
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/origins \
  --header 'Content-Type: application/json' \
  --data '{
  "origin": "http://*.example.com"
}'
{
  "origin": {
    "id": "95b11417-f18f-457f-8804-68e361f9164f",
    "origin": "http://*.example.com",
    "createdAt": "2023-11-07T05:31:56Z",
    "projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f"
  }
}

Path Parameters

environmentId
string
required
Required string length: 36
Example:

Body

application/json
origin
string
required
Example:

Response

origin
object