All endpoints

Developers / StrawPoll API / Forms

Duplicate a form

POST/forms/{slug}/duplicate

Copies the form as it stands in the editor, draft included, into a new draft named "Copy of …", without responses. Sections, fields and choices get new ids. The copy stays in the form's workspace when you may create forms there.

Needs an API key.

Parameters

Path

  • slug string required max. 20

    The form's public id, as in https://strawpoll.com/r/{slug}.

Responses

The copy, as the form list shows it.

  • id string (uuid)
  • slug string
  • customSlug string | null

    The form's own link, while the plan includes it.

  • name string

    The name, else the (draft) title.

  • status string

    deleted and blocked are set by moderation; such forms cannot be changed.

    One of: draft published archived deleted blocked

  • isOpen boolean
  • responseCount integer
  • workspaceId string (uuid) | null
  • sectionTypes array of string

    Each section's type in order, with question variants like yes_no or rating in place of content.

  • opensAt string (date-time) | null
  • closesAt string (date-time) | null
  • createdAt string (date-time)
  • updatedAt string (date-time)
  • deletedAt string (date-time) | null

Try it

Create a key

Sent from your browser straight to the API, nowhere else. With “Remember” on it stays until you close this tab. A read-only key lets you look around without changing anything.

POST https://new.strawpoll.com/api/v4/forms/{slug}/duplicate

Paste an API key to send requests that need one.

Requests with a key count against your plan’s daily API requests.