Organization

Create the caller's organisation and company

POST/v1/organization

Onboarding: makes the signed-in user the owner of a new organisation. Refused with 409 when the user already belongs to one or the company name is taken.

Requires the session token of a signed-in Alfa user as a bearer token.

Request body

  • company_namestringrequired

    at least 1 characters

  • website_urlstringrequired
  • hq_countrystring
  • linkedin_urlstring
  • first_namestring
  • last_namestring
  • logo_urlstring
  • gclidstring | null

Responses

  • 201Created.
  • 400The request is malformed: invalid JSON, an unexpected body or an unknown query parameter. Problem details
  • 401The bearer token is missing, expired or invalid. Problem details
  • 403The caller may not perform this operation, or has no active organisation. Problem details
  • 404The resource does not exist or is not visible to the caller. Problem details
  • 422The request failed validation; `errors` lists each invalid field. Problem details
  • 429Too many requests, or the AI service is busy. Retry after a short wait. Problem details
  • 500An unexpected error. Quote the `correlationId` to support. Problem details