create
POST /api/v1/{account_id}/projects
This endpoint creates a project within an account.
Request
base_url(string): The base URL of the API.account_id(string): The unique identifier of the account.
Request body
name(string, required): The name of the project.domain(string, required): The site to protect, as a bare hostname —example.com, not a URL. A value that is not a domain is rejected withprotection_domain.not_valid_domain.
Response
200 with the id of the created project, as a bare JSON string.
Accepted permissions
Account → Projects → CreateToken scope
Account Projects Actions
Authentication
X-Api-Keystring
Personal access token. Create it in your BotBye account under Profile → Personal Access Tokens, tick the scopes the endpoints you call require (see each endpoint’s Token scope), and send the token in the X-Api-Key request header. A token works only for the account it was created in.
Path parameters
account_id
Request
This endpoint expects an object.
name
domain
Site to protect, as a bare hostname — example.com. Not a URL.
Response headers
Content-Length
Connection
Response
success
Errors
400
Bad Request Error

