Menu

DevelopersREST API

Organisation API

Get your AutoRFP.ai organisation's custom project field definitions with the REST API, to discover the fields you can set when you update a project.

Use this endpoint to read your organisation’s custom project field definitions. It tells you which fields you can set with Update project custom fields.

It needs the organisation:read scope.

Get organisation settings#

get/v1/organisation

Returns the organisation's custom project field definitions (id, type, options, and flags). Use this to discover which fields you can set with PATCH /v1/projects/{projectId}. customFields is [] when no organisation template is configured. required on these definitions is the organisation-template flag; PATCH evaluates requiredness on the project working set (see PATCH docs). manageOnly is discovery-only and ignored by PATCH. Dynamic optionSource.set values such as users, usersAndTeams, or teams use user:<id> / team:<id> (bare id = legacy user); PATCH validates organisation membership for these known sets. Requires organisation:read. Rate limit: 100 requests / 60 seconds.

Required scopeorganisation:read

Returns

Organisation settings (custom field definitions)

  • typeenumrequired

    One of:organisation

  • idstringrequired

    Organisation id

  • attributesobjectrequired
    Show child attributes
    • customFieldsarray of objectsrequired

      Organisation custom project field definitions. Empty when no template is configured.

      Show child attributes
      • idstringrequired

        Stable field id, pass as id in PATCH /v1/projects/{projectId}

      • labelstringrequired

        Human-readable field label

      • typeenumrequired

        Field value type

        One of:textnumberdatedropdownmultiselectcheckbox

      • requiredbooleanrequired

        Organisation-template required flag. PATCH uses each field.required on the project working set (cloned/appended from this template when missing; existing project flags are not rewritten). See PATCH docs for snapshot∪touched rules.

      • sectionstring | nullrequired

        UI section grouping, or null

      • manageOnlybooleanrequired

        Product UI may hide this field from non-managers. Ignored by PATCH (no write-deny; still counts when the project field is required).

      • externalIdstring | nullrequired

        Optional CRM/external key, pass as externalId in PATCH

      • optionsarray of objects

        Static dropdown/multiselect options on the organisation template. Non-empty PATCH refreshes matched project optionSource from this template.

        Show child attributes
        • valuestringrequired
        • labelstringrequired
      • optionSourceobject

        Dynamic option set (e.g. users, usersAndTeams, teams). For known sets, PATCH requires org membership via user:<id> / team:<id> (bare id = legacy user). Non-empty PATCH refreshes matched project optionSource from this template.

        Show child attributes
        • typeenumrequired

          One of:dynamic

        • setstringrequired
      • multilineboolean

        Present on text fields when multiline is enabled

Errors

StatusMeaning
401Unauthorized
403Insufficient scope (requires organisation:read)
429Rate limit exceeded
500Internal server error

Request

curl -g "https://api.autorfp.ai/v1/organisation" \
  -H "Authorization: Bearer $AUTORFP_API_KEY"

Response

Response

{
  "data": {
    "type": "organisation",
    "id": "8f14e45f",
    "attributes": {
      "customFields": [
        {
          "id": "8f14e45f",
          "label": "Security",
          "type": "text",
          "required": true,
          "section": "example",
          "manageOnly": true,
          "externalId": "8f14e45f",
          "options": [
            {
              "value": "example",
              "label": "Security"
            }
          ],
          "optionSource": {
            "type": "dynamic",
            "set": "users"
          },
          "multiline": true
        }
      ]
    }
  }
}