---
title: "createCampaignDomainSlug"
method: POST
path: "/campaigns/{campaign}/domain-slugs"
tags: ["Domain Slug"]
---

# createCampaignDomainSlug

`POST /campaigns/{campaign}/domain-slugs`

## Request

- Base URL: `https://pro.gofundme.com/api/2.0`
- URL: `https://pro.gofundme.com/api/2.0/campaigns/{campaign}/domain-slugs`
- Auth: OAuth 2
  - Password
  - Token URL: `/oauth2/auth`

Create a Domain Slug for the specified Campaign

## Path parameters

- `campaign` integer, required

## Request body

- object
  - `links_to_donation_page` boolean: Indicates whether the slug should reference the Donation Page for the DomainSlug's Fundraising Entity
  - `value` string: Value of the Domain Slug
  - `domain_id` integer: Primary identifier of associated Domain. If none provided, the default Domain will be used.

## Response `200`

Success

- DomainSlug
  - `created_at` string, date-time: Date/time of initial record creation
  - `deleted_at` string, date-time, nullable: Date/time that record was deleted
  - `domain_id` integer: Primary identifier of associated Domain
  - `fundraising_entity_id` integer: Primary identifier of associated Fundraising Entity
  - `fundraising_entity_type` 'organization' | 'campaign' | 'fundraising_page' | 'fundraising_team': Type of associated Fundraising Entity
  - `id` integer: Primary identifier of record
  - `links_to_donation_page` boolean: Indicates whether the slug should reference the Donation Page for the DomainSlug's Fundraising Entity
  - `domain_masking_url` string: The domain masking url of the organization
  - `updated_at` string, date-time: Date/time when record was last updated
  - `value` string: Value of the Domain Slug

## Other responses

- `403`: Requester is not authorized to perform action
- `404`: Campaign not found

---

[API](https://skmtc.dev/gofundme/apis/gofundme-pro-api.md) - [All operations](https://skmtc.dev/gofundme/apis/gofundme-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gofundme/apis/gofundme-pro-api/revisions/094a1e510fe9?raw)
