Add a column to a vault
Add a column to a vault's table.
Adding a column scans nothing. Documents already in the vault keep an empty cell for the new column until a re-scan fills it, which you start from the vault in the app. Add the columns you want before you upload, and every document that arrives afterwards is read against all of them.
The new column starts hidden in every saved view of this vault. A saved view is a sharing boundary, so a column created after the view was saved never joins it on its own; a member of the view reveals it there when they want it.
field_key is frozen at creation. Omit it and GC AI builds one from the label. Renaming the column later leaves the key alone, so the values already extracted stay attached to it.
A vault holds at most 500 columns. Column 501 returns 403 with the message the app shows, and you have to delete a column before adding another.
Requires the editor or owner role in the vault and the organization-level permission to manage vaults.
Requires a user-scoped API key (u:gcai_...). A vault is shared with named people, so an organization-scoped key has no identity to resolve vault access with.
Request
- Base URLhttps://app.gc.ai/api/external/v1
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The vault ID
Request body
Example request
{
"label": "Renewal notice",
"field_key": "renewalNotice",
"instructions": "Extract the number of days notice required to avoid automatic renewal. Return the number of days only.",
"field_meta": {
"options": [
"Renewal",
"New business",
"Amendment"
]
}
}Response
The created column
Example response
{
"field_key": "renewalNotice",
"label": "Renewal notice"
}Changes
No recorded changes to this operation across all 1 revision of this API.