Beglaubigt.de API
Trade Registration
POST

Create Trade Registration

POST https://api.beglaubigt.de/v1/trade-registration

Authorization

Include an Authorization header with a Bearer token:

Authorization: Bearer <token>

Example: Bearer sk-123e4567-e89b-12d3-a456-426614174000

Environment

The environment comes from the company your API key belongs to, not from the request. A sandbox company's key creates sandbox registrations for testing; a production company's key creates live ones. To test, use the API key of your sandbox company.

Idempotency

To retry a request safely after a timeout or a 5xx, send an Idempotency-Key header and reuse the same key on every retry. A retry then gets the first response back instead of creating a second case. See Idempotency.

Idempotency-Key: 5b0c8e8a-7d2f-4d0e-9a51-1f0b6a4c2e11

A replayed response has the status code of the first one, never 208, and the header Idempotent-Replayed: true.

Sending documents

Without documents, send the payload as JSON. Each document you attach (an owner's signed form or copy, or a company paper) is one object in the payload, sent in one of two ways:

  • Base64 in a JSON body: content holds the file as standard base64, with its file_name and content_type. At most 20 MB per document and 50 MB per request, base64 included.
  • Multipart: send the request as multipart/form-data, with the payload in a data field and each file in a part. file names that part. At most 50 MB per file and 50 files per request.
"identity_document": {
  "content": "JVBERi0xLjQKJ...",
  "file_name": "passport.jpg",
  "content_type": "image/jpeg",
  "document_type": "passport"
}

A copy (ID, residence permit, Meldebescheinigung, company papers) can be a PDF, JPG or PNG; a photo or scan is stored as a PDF. The signed GewA 1 and power of attorney must be PDFs. content_type must match the file. A request or document over the limits is refused with 413 and error_code: PAYLOAD_TOO_LARGE.

Character Set

The GewA 1 is filled with your text, so every text field printed on it (names, addresses, purpose, the permit and Handwerkskarte details) takes Latin-1 characters only: digits, common punctuation, and the letters of Western European languages, umlauts and ß included. A character outside it is replaced by its Latin spelling before the form is filled, so Łukasz Šarić is registered as Lukasz Saric and „Muster“ as "Muster". Text with no Latin spelling, such as Cyrillic or emoji, is rejected with 400 VALIDATION_ERROR naming the field.

Request

Core

company_idstring

The UUID of the client company the trade registration belongs to. A company holds at most one tax registration and one trade registration, so use the same company_id on both endpoints to keep a client's registrations together, in parallel or in any order.

  • A UUID that does not exist yet: the company is created under that id. You can choose the id yourself.
  • An existing company of yours: the registration is added to it. If it already has a trade registration, the request returns 409 COMPANY_ALREADY_REGISTERED. If it is in another environment than your API key's company (see Environment), it returns 409 ENVIRONMENT_MISMATCH.
  • A company created by another account: 404 COMPANY_NOT_FOUND.
  • Omitted: a new company is created and its id returned as company_id.

Example: 9b2e4c7a-1d3f-4a8b-9c6e-2f5a7b8c1d0e

packagestringrequired

The service package.
Possible values: self or assisted

client_referencestring

A custom reference string for your own tracking. Max 200 characters.
Example: REF-2025-001

client_preferred_languagestringdefault: de

The language used when communicating with the client.
Possible values: en, fr, de, it or es

Registration

reasonstringrequired

Why the trade is being registered.
Possible values: new-foundation, takeover, reopening-after-relocation, legal-form-change, partner-entry or transformation-law

operational_activity_start_datestringrequired

The date the business begins operating. May be in the past, since a Gewerbe is often registered once trading has already started. Format: YYYY-MM-DD.
Example: 2030-12-01

establishment_typestringrequired

The kind of establishment being registered.
Possible values: main-office, branch-office, dependent-branch or travel-industry

acquisition_typestringrequired

Whether the trade is the owner's main or secondary occupation.
Possible values: main-occupation or secondary-occupation

Company

namestringrequired

The business name including the legal-form suffix where one applies. Max 120 characters.
Example: Musterbau GmbH

legal_formstringrequired

The legal form of the company.
Possible values: einzelunternehmen, ug, gmbh, gbr, einzelkaufmann-ek, gmbh-co-kg, kg, ohg, ug-co-kg, ggmbh, ag, kgaa or other

registration_numberstring

The number the business is entered under in a public register (Handelsregister, Genossenschaftsregister or Gesellschaftsregister). Omit it when the business is not registered. Max 30 characters.
Example: HRB 123456 B

business_typearrayrequired

The categories the activity falls into, at least one.
Possible values: industry, trade, craft or other

purposestringrequired

Description of the business activity. Max 200 characters.
Example: Innenausbau und Trockenbauarbeiten

registered_officeobjectrequired

Address of the establishment. Only a fixed German establishment can file a GewA 1 (§ 14 GewO), so the address takes no country and the postal code must be a German 5-digit code.

business_addressobject

Billing address of the client company created for you. Only applies when company_id is omitted; it is rejected if sent together with company_id. Unlike registered_office, it can be outside Germany.

phonestringrequired

Phone number of the business. Digits, spaces and + ( ) . / - only, 6 to 32 characters.
Example: +4930123456

emailstringrequired

Email address of the business.
Example: kontakt@musterbau.de

Licenses & Public Sector

industrial_licenseobject

Details of the permit or licence the activity requires (Erlaubnispflicht). Omit it when the activity needs none. Send a copy of the permit in documents.industrial_license.

craft_cardobject

Details of the business's Handwerkskarte (registration in the Handwerksrolle). Only when business_type includes craft, and rejected otherwise. Omit it when the business has no Handwerkskarte, for example a zulassungsfreies Handwerk; the GewA 1 then says it has none. Send a copy of the card in documents.craft_card.

has_public_sector_participationbooleanrequired

Whether a public-sector body holds a stake in the business.
Possible values: true or false

Employees

employeesobject

The employee counts. Omit it when the business has no employees; the GewA 1 asks for both counts, so both are required once it is sent.

Company documents

documentsobject

Copies of the company's papers the trade office asks to see, each sent as base64 or as a multipart part (see Sending documents). A PDF, JPG or PNG; a photo or scan is stored as a PDF.

Owners

ownersarrayrequired

Everyone registering the trade, 1 to 9 entries, in the order they should appear. Each owner signs their own GewA 1 and, on the assisted package, their own power of attorney.

Response

resultstring

Outcome of the request.
Possible values: success or error

messagestring

Human-readable outcome message.
Example: Trade registration created successfully.

company_idstring

UUID of the client company the case belongs to: the company_id you sent, or the one created for you when you omitted it. Pass it as company_id to the tax registration endpoint to register the same company there.
Example: 9b2e4c7a-1d3f-4a8b-9c6e-2f5a7b8c1d0e

trade_registration_idstring

UUID of the trade registration case. Use it with the GET endpoint.
Example: 450506c1-d1a7-46e2-aca6-41a816805595

statusstring

The status the case landed in, driven by package.
Possible values: form-rendered or submitted

ownersarray

The owners as they were created, in the order you sent them, each with the documents they signed. A download link is valid for 24 hours.

documentsobject

The company's copies you sent in documents, each a Document Object like an owner's. A key is present only for a copy you sent. A download link is valid for 24 hours.

client_referencestring

The custom reference string you provided.
Example: REF-2025-001

client_preferred_languagestring

The language used when communicating with the client.
Possible values: en, fr, de, it or es

timestampstring

ISO 8601 timestamp of the response.
Example: 2025-02-01T07:19:30.443Z

Errors

Statuserror_codeWhen
400INVALID_JSONThe request has no body, or a multipart request has no data field or its data is not valid JSON.
400VALIDATION_ERRORA field is missing or invalid, the body is not valid JSON, or the Idempotency-Key header is empty, sent twice, or longer than 255 characters. details lists each field with its problem.
400DOCUMENT_UPLOAD_ERRORA document cannot be used: no part carries the name in file, a part carries more than one file, file is used in a JSON request, a signed form is not a PDF, a copy is not a PDF, JPG or PNG, content_type does not match the file, or a part is attached that no document names. details gives the path and the reason.
401AUTHORIZATION_ERRORThe Authorization header is malformed: the key is not sk- followed by a UUID, or the scheme is not written Bearer.
401INVALID_API_KEYThe API key is unknown, revoked or expired, or its company is not on an Enterprise plan.
404COMPANY_NOT_FOUNDThe company_id you passed belongs to another account.
409COMPANY_ALREADY_REGISTEREDThe company_id you passed already has a trade registration.
409ENVIRONMENT_MISMATCHThe company_id you passed belongs to a different environment than your API key.
409IDEMPOTENCY_REQUEST_IN_PROGRESSA request with the same Idempotency-Key is still running. Retry with the same key.
413PAYLOAD_TOO_LARGEThe request or a document is over the limits in Sending documents.
422IDEMPOTENCY_KEY_REUSEDThe Idempotency-Key was already used with a different request body.
500PROCESSING_ERROR / UNKNOWN_ERRORAn error on our side, for example a photo that could not be converted to a PDF. Contact support with the timestamp.

Nothing is created when the request fails with a 4xx.

Two errors come from the gateway, before the request reaches the endpoint, so their body is { "error": "..." } without the response wrapper:

  • 401 { "error": "Unauthorized: Invalid API token" } when the Authorization header is missing or the key does not start with sk-.
  • 429 { "error": "Too many requests" } past 500 requests an hour or 5,000 a day per API key.

See Authentication and Rate Limits.

Example

Request
{
  "name": "Musterbau GmbH",
  "legal_form": "gmbh",
  "package": "assisted",
  "reason": "new-foundation",
  "establishment_type": "main-office",
  "acquisition_type": "main-occupation",
  "registration_number": "HRB 123456 B",
  "operational_activity_start_date": "2030-12-01",
  "business_type": ["craft", "trade"],
  "purpose": "Innenausbau und Trockenbauarbeiten",
  "phone": "+4930123456",
  "email": "kontakt@musterbau.de",
  "registered_office": {
    "street": "Friedrichstraße 176",
    "street_second_line": "Aufgang C",
    "zip": "10117",
    "city": "Berlin"
  },
  "business_address": {
    "street": "Torstraße 1",
    "street_second_line": "c/o Muster",
    "zip": "10119",
    "city": "Berlin",
    "state": "Berlin",
    "country": "DE"
  },
  "has_public_sector_participation": false,
  "employees": {
    "full_time": "6-10",
    "part_time": "2"
  },
  "owners": [
    {
      "first_name": "Anna",
      "last_name": "Schmidt",
      "birth_name": "Weber",
      "dob": "1986-03-12",
      "place_of_birth": "Basel",
      "country_of_birth": "CH",
      "nationality": "CH",
      "gender": "female",
      "phone": "+4915100000001",
      "email": "anna.schmidt@beispiel.de",
      "signatures": {
        "gewa_1": "M 10 10 L 90 90 M 90 10 L 10 90",
        "power_of_attorney": "M 10 10 L 90 90 M 90 10 L 10 90"
      },
      "address": {
        "street": "Kastanienallee 12",
        "street_second_line": "Hinterhaus",
        "zip": "10435",
        "city": "Berlin",
        "state": "Berlin",
        "country": "DE"
      }
    },
    {
      "first_name": "Jonas",
      "last_name": "Meier",
      "dob": "1984-02-11",
      "place_of_birth": "Bremen",
      "country_of_birth": "DE",
      "nationality": "DE",
      "gender": "male",
      "phone": "+4915100000004",
      "email": "jonas.meier@beispiel.de",
      "signatures": {
        "gewa_1": "M 20 20 L 80 80",
        "power_of_attorney": "M 20 20 L 80 80"
      }
    }
  ],
  "client_reference": "REF-2025-001",
  "client_preferred_language": "de"
}

The same request as a plain JSON body, each document embedded as base64 (shortened here).

Request
{
  "name": "Musterbau GmbH",
  "legal_form": "gmbh",
  "package": "assisted",
  "reason": "new-foundation",
  "establishment_type": "main-office",
  "acquisition_type": "main-occupation",
  "registration_number": "HRB 123456 B",
  "operational_activity_start_date": "2030-12-01",
  "business_type": [
    "craft",
    "trade"
  ],
  "purpose": "Innenausbau und Trockenbauarbeiten",
  "phone": "+4930123456",
  "email": "kontakt@musterbau.de",
  "registered_office": {
    "street": "Friedrichstraße 176",
    "street_second_line": "Aufgang C",
    "zip": "10117",
    "city": "Berlin"
  },
  "business_address": {
    "street": "Torstraße 1",
    "street_second_line": "c/o Muster",
    "zip": "10119",
    "city": "Berlin",
    "state": "Berlin",
    "country": "DE"
  },
  "industrial_license": {
    "issue_date": "2024-01-15",
    "issuing_authority": "Bezirksamt Mitte von Berlin",
    "zip": "10117",
    "location": "Berlin"
  },
  "has_public_sector_participation": false,
  "employees": {
    "full_time": "6-10",
    "part_time": "2"
  },
  "documents": {
    "industrial_license": {
      "content": "JVBERi0xLjQKJ...",
      "file_name": "erlaubnis.pdf",
      "content_type": "application/pdf"
    },
    "commercial_register_excerpt": {
      "content": "JVBERi0xLjQKJ...",
      "file_name": "handelsregisterauszug.pdf",
      "content_type": "application/pdf"
    }
  },
  "owners": [
    {
      "first_name": "Anna",
      "last_name": "Schmidt",
      "birth_name": "Weber",
      "dob": "1986-03-12",
      "place_of_birth": "Basel",
      "country_of_birth": "TR",
      "nationality": "TR",
      "gender": "female",
      "phone": "+4915100000001",
      "email": "anna.schmidt@beispiel.de",
      "documents": {
        "gewa_1": {
          "content": "JVBERi0xLjQKJ...",
          "file_name": "gewa-1-anna-schmidt.pdf",
          "content_type": "application/pdf"
        },
        "residence_permit": {
          "content": "/9j/4AAQSkZJRg...",
          "file_name": "residence-permit-anna-schmidt.jpg",
          "content_type": "image/jpeg"
        },
        "identity_document": {
          "content": "/9j/4AAQSkZJRg...",
          "file_name": "passport-anna-schmidt.jpg",
          "content_type": "image/jpeg",
          "document_type": "passport"
        },
        "registration_certificate": {
          "content": "JVBERi0xLjQKJ...",
          "file_name": "meldebescheinigung-anna-schmidt.pdf",
          "content_type": "application/pdf"
        }
      },
      "signatures": {
        "power_of_attorney": "M 10 10 L 90 90 M 90 10 L 10 90"
      },
      "residence_permit": {
        "issue_date": "2023-02-01",
        "issuing_authority": "Ausländerbehörde Berlin"
      },
      "has_employment_restrictions": false,
      "address": {
        "street": "Kastanienallee 12",
        "street_second_line": "Hinterhaus",
        "zip": "10435",
        "city": "Berlin",
        "state": "Berlin",
        "country": "DE"
      }
    },
    {
      "first_name": "Jonas",
      "last_name": "Meier",
      "dob": "1984-02-11",
      "place_of_birth": "Bremen",
      "country_of_birth": "DE",
      "nationality": "DE",
      "gender": "male",
      "phone": "+4915100000004",
      "email": "jonas.meier@beispiel.de",
      "documents": {
        "gewa_1": {
          "content": "JVBERi0xLjQKJ...",
          "file_name": "gewa-1-jonas-meier.pdf",
          "content_type": "application/pdf"
        }
      },
      "signatures": {
        "power_of_attorney": "M 20 20 L 80 80"
      }
    }
  ],
  "client_reference": "REF-2025-001",
  "client_preferred_language": "de"
}

The payload travels in the data field of a multipart/form-data request, with one part per attached file. A request carries at most 50 files of at most 50 MB each; a larger one is rejected with 413 PAYLOAD_TOO_LARGE.

curl https://api.beglaubigt.de/v1/trade-registration \
  -H "Authorization: Bearer sk-123e4567-e89b-12d3-a456-426614174000" \
  -F 'data=<the payload below>' \
  -F 'gewa-anna-schmidt=@gewa-1-anna-schmidt.pdf;type=application/pdf' \
  -F 'permit-anna-schmidt=@residence-permit-anna-schmidt.jpg;type=image/jpeg' \
  -F 'id-anna-schmidt=@passport-anna-schmidt.jpg;type=image/jpeg' \
  -F 'meldung-anna-schmidt=@meldebescheinigung-anna-schmidt.pdf;type=application/pdf' \
  -F 'gewa-jonas-meier=@gewa-1-jonas-meier.pdf;type=application/pdf' \
  -F 'licence-musterbau=@erlaubnis.pdf;type=application/pdf' \
  -F 'hr-excerpt-musterbau=@handelsregisterauszug.pdf;type=application/pdf'
Request
{
  "name": "Musterbau GmbH",
  "legal_form": "gmbh",
  "package": "assisted",
  "reason": "new-foundation",
  "establishment_type": "main-office",
  "acquisition_type": "main-occupation",
  "registration_number": "HRB 123456 B",
  "operational_activity_start_date": "2030-12-01",
  "business_type": ["craft", "trade"],
  "purpose": "Innenausbau und Trockenbauarbeiten",
  "phone": "+4930123456",
  "email": "kontakt@musterbau.de",
  "registered_office": {
    "street": "Friedrichstraße 176",
    "street_second_line": "Aufgang C",
    "zip": "10117",
    "city": "Berlin"
  },
  "business_address": {
    "street": "Torstraße 1",
    "street_second_line": "c/o Muster",
    "zip": "10119",
    "city": "Berlin",
    "state": "Berlin",
    "country": "DE"
  },
  "industrial_license": {
    "issue_date": "2024-01-15",
    "issuing_authority": "Bezirksamt Mitte von Berlin",
    "zip": "10117",
    "location": "Berlin"
  },
  "has_public_sector_participation": false,
  "employees": {
    "full_time": "6-10",
    "part_time": "2"
  },
  "documents": {
    "industrial_license": {
      "file": "licence-musterbau"
    },
    "commercial_register_excerpt": {
      "file": "hr-excerpt-musterbau"
    }
  },
  "owners": [
    {
      "first_name": "Anna",
      "last_name": "Schmidt",
      "birth_name": "Weber",
      "dob": "1986-03-12",
      "place_of_birth": "Basel",
      "country_of_birth": "TR",
      "nationality": "TR",
      "gender": "female",
      "phone": "+4915100000001",
      "email": "anna.schmidt@beispiel.de",
      "documents": {
        "gewa_1": {
          "file": "gewa-anna-schmidt"
        },
        "residence_permit": {
          "file": "permit-anna-schmidt"
        },
        "identity_document": {
          "file": "id-anna-schmidt",
          "document_type": "passport"
        },
        "registration_certificate": {
          "file": "meldung-anna-schmidt"
        }
      },
      "signatures": {
        "power_of_attorney": "M 10 10 L 90 90 M 90 10 L 10 90"
      },
      "residence_permit": {
        "issue_date": "2023-02-01",
        "issuing_authority": "Ausländerbehörde Berlin"
      },
      "has_employment_restrictions": false,
      "address": {
        "street": "Kastanienallee 12",
        "street_second_line": "Hinterhaus",
        "zip": "10435",
        "city": "Berlin",
        "state": "Berlin",
        "country": "DE"
      }
    },
    {
      "first_name": "Jonas",
      "last_name": "Meier",
      "dob": "1984-02-11",
      "place_of_birth": "Bremen",
      "country_of_birth": "DE",
      "nationality": "DE",
      "gender": "male",
      "phone": "+4915100000004",
      "email": "jonas.meier@beispiel.de",
      "documents": {
        "gewa_1": {
          "file": "gewa-jonas-meier"
        }
      },
      "signatures": {
        "power_of_attorney": "M 20 20 L 80 80"
      }
    }
  ],
  "client_reference": "REF-2025-001",
  "client_preferred_language": "de"
}
Response
{
  "response": {
    "result": "success",
    "message": "Trade registration created successfully.",
    "company_id": "9b2e4c7a-1d3f-4a8b-9c6e-2f5a7b8c1d0e",
    "trade_registration_id": "450506c1-d1a7-46e2-aca6-41a816805595",
    "status": "submitted",
    "owners": [
      {
        "first_name": "Anna",
        "last_name": "Schmidt",
        "documents": {
          "gewa_1": {
            "id": "baa38d14-c224-4894-823a-87536c5e45d4",
            "name": "GewA 1 - Gewerbe-Anmeldung (Anna Schmidt)",
            "download_url": "https://app.beglaubigt.de/download?bucket=company-documents&id=baa38d14-c224-4894-823a-87536c5e45d4&token=a1H...To5"
          },
          "power_of_attorney": {
            "id": "7c1f0f42-9a6d-4a1e-bb18-2f0f0a4d9c33",
            "name": "Vollmacht zur Einreichung (Anna Schmidt)",
            "download_url": "https://app.beglaubigt.de/download?bucket=company-documents&id=7c1f0f42-9a6d-4a1e-bb18-2f0f0a4d9c33&token=b2K...Qp9"
          }
        }
      },
      {
        "first_name": "Jonas",
        "last_name": "Meier",
        "documents": {
          "gewa_1": {
            "id": "1f9c7a55-3b64-4a20-9f0e-5c4a2d7b6e11",
            "name": "GewA 1 - Gewerbe-Anmeldung (Jonas Meier)",
            "download_url": "https://app.beglaubigt.de/download?bucket=company-documents&id=1f9c7a55-3b64-4a20-9f0e-5c4a2d7b6e11&token=c3L...Rt2"
          },
          "power_of_attorney": {
            "id": "9d2b8e07-4c15-4d33-8a72-6e1f0b3c9a48",
            "name": "Vollmacht zur Einreichung (Jonas Meier)",
            "download_url": "https://app.beglaubigt.de/download?bucket=company-documents&id=9d2b8e07-4c15-4d33-8a72-6e1f0b3c9a48&token=d4M...Su3"
          }
        }
      }
    ],
    "documents": {},
    "client_reference": "REF-2025-001",
    "client_preferred_language": "de",
    "timestamp": "2025-02-01T07:19:30.443Z"
  }
}

On this page