> For the complete documentation index, see [llms.txt](https://docs.guardianservice.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guardianservice.app/technical-information/users/standard-registry-users-schemas-and-policies/policies/creating-a-policy-using-apis/returns-open-source-file-url.md).

# Returns Open Source File URL

## Returns open source policy file by url from allowed policy list.

<mark style="color:green;">`POST`</mark> `/policies/opensourced/getByUrl`

Return open source policy file

#### Request Body

| Name                                        | Type   | Description                  |
| ------------------------------------------- | ------ | ---------------------------- |
| policyUrl<mark style="color:red;">\*</mark> | String | Open Source policy file link |

{% tabs %}
{% tab title="200: OK Successful Operation" %}

```
content:
            binary/octet-stream:
              schema:
                type: string
                format: binary
```

{% endtab %}

{% tab title="451: Unavailable For Legal Reasons Unavailable for Legal Reasons. User must accept new terms of use." %}

{% endtab %}
{% endtabs %}
