Webforms
Overview
Available Operations
list - Get All Webforms
create - Create Webform
update - Update Webform
remove - Remove Webform
get_by_id - Get Webform By ID
list
Returns all webforms of the given owner_id (teamId) in the request param. Requires access_token as a Bearer {{token}} in the Authorization header with read scope.
Example Usage
from squadcast_sdk import SquadcastSDK
with SquadcastSDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as ss_client:
res = ss_client.webforms.list(owner_id="<id>")
while res is not None:
# Handle items
res = res.next()
Parameters
owner_id
str
✔️
N/A
page_number
Optional[int]
➖
N/A
page_size
Optional[int]
➖
N/A
retries
➖
Configuration to override the default retry behavior of the client.
Response
models.WebformsGetAllWebformsResponse
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
create
Add a webform to the organization. Returns the webform object in response. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.
Example Usage
Parameters
owner_id
str
✔️
Unique identifier of the owner (string or UUID)
name
str
✔️
Name of the webform
is_cname
bool
✔️
Indicates if a custom domain (CNAME) is used
is_captcha_enabled
bool
✔️
Whether CAPTCHA is enabled on the form
form_owner_type
str
✔️
Entity type that owns the form (e.g., team, user)
form_owner_id
str
✔️
Identifier for the owner entity
header
str
✔️
Header text shown on the form
title
str
✔️
Title of the webform
footer_text
str
✔️
Text displayed in the footer
footer_link
str
✔️
Hyperlink in the footer (mailto or https)
host_name
Optional[str]
➖
Custom hostname if CNAME is enabled
logo_url
Optional[str]
➖
URL to the organization's logo
email_on
List[str]
➖
Emails to notify on submission
description
Optional[str]
➖
Optional description for the webform
retries
➖
Configuration to override the default retry behavior of the client.
Response
models.WebformsCreateWebformResponse
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
update
Update a webform to the organization. Returns the webform object in response. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.
Example Usage
Parameters
webform_id
int
✔️
N/A
owner_id
str
✔️
Unique identifier of the owner (string or UUID)
name
str
✔️
Name of the webform
is_cname
bool
✔️
Indicates if a custom domain (CNAME) is used
is_captcha_enabled
bool
✔️
Whether CAPTCHA is enabled on the form
form_owner_type
str
✔️
Entity type that owns the form (e.g., team, user)
form_owner_id
str
✔️
Identifier for the owner entity
header
str
✔️
Header text shown on the form
title
str
✔️
Title of the webform
footer_text
str
✔️
Text displayed in the footer
footer_link
str
✔️
Hyperlink in the footer (mailto or https)
host_name
Optional[str]
➖
Custom hostname if CNAME is enabled
logo_url
Optional[str]
➖
URL to the organization's logo
email_on
List[str]
➖
Emails to notify on submission
description
Optional[str]
➖
Optional description for the webform
retries
➖
Configuration to override the default retry behavior of the client.
Response
models.WebformsUpdateWebformResponse
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
remove
Remove a webform from the organization. Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.
Example Usage
Parameters
webform_id
int
✔️
N/A
owner_id
str
✔️
N/A
retries
➖
Configuration to override the default retry behavior of the client.
Response
models.WebformsRemoveWebformResponse
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
get_by_id
Returns a webform details of the given webformId in the request param. Requires access_token as a Bearer {{token}} in the Authorization header with read scope.
Example Usage
Parameters
webform_id
int
✔️
N/A
owner_id
str
✔️
N/A
retries
➖
Configuration to override the default retry behavior of the client.
Response
models.WebformsGetWebformByIDResponse
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
Last updated