---
title: "CreateSyncFunctionOriginURL creates a sync function origin URL."
method: POST
path: "/v1.1/sync_function_origin_urls"
tags: ["ControlService"]
---

# CreateSyncFunctionOriginURL creates a sync function origin URL.

`POST /v1.1/sync_function_origin_urls`

These are the authorized origins for custom sync functions. Adding a sync function origin URL
 will allow the sync function to be used in the cluster and the proper CORS headers will be set.

## Request body

- ProtobufControlpbV1CreateSyncFunctionOriginURLRequest
  - `syncFunctionOriginUrl` union
    - object, nullable
    - ProtobufControlpbV1SyncFunctionOriginURL
      - `author` string — The person or entity that created or authorized the origin URL. This field is also required to ensure traceability and accountability for each URL entry.
      - `createdAt` string, date-time, nullable
      - `url` string — The origin URL that is allowed to access the sync handler endpoints.

## Response `200`

OK

- ProtobufControlpbV1CreateSyncFunctionOriginURLResponse
  - `syncFunctionOriginUrl` union
    - object, nullable
    - ProtobufControlpbV1SyncFunctionOriginURL
      - `author` string — The person or entity that created or authorized the origin URL. This field is also required to ensure traceability and accountability for each URL entry.
      - `createdAt` string, date-time, nullable
      - `url` string — The origin URL that is allowed to access the sync handler endpoints.

## Other responses

- `4XX` — Something is wrong with your request such as missing or invalid data. Correct your request and try again.
- `5XX` — Internal server error. Try again later or reach out to MetaRouter support.

---

[API](https://skmtc.net/metarouter/apis/control-api.md) · [All operations](https://skmtc.net/metarouter/apis/control-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metarouter/control-api/versions/5afc05bfaaa2/schema)
