veryfront__create_api_key
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Can read or manage credentials.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
name | string | Yes | Name for the API key |
project_reference | string | No | Project ID or slug. Creating a project-scoped key requires project.api_keys.manage. Omit for a user-level key; a project-scoped API-key caller retains its enforced project when this field is omitted. |
expires_at | string | No | Expiration date in ISO 8601 format |
Example request
Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.
request.json
1{2 "jsonrpc": "2.0",3 "id": 1,4 "method": "tools/call",5 "params": {6 "name": "veryfront__create_api_key",7 "arguments": {8 "name": "example"9 }10 }11}Result
The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
id | string | Yes | Unique identifier for the returned record. |
project_id | string or null | Yes | Project identifier associated with this result. |
user_id | string | Yes | |
name | string | Yes | Human-readable name for the returned record. |
key | string | Yes | Secret API key, returned only once. Do not echo, log or paste it into chat; write it straight to a secret store or environment variable. |
key_prefix | string | Yes | |
expires_at | string or null | Yes | |
created_at | string | Yes | Creation timestamp in ISO 8601 format. |
scopes | string[] | Yes | List of scopes associated with this tool result. |
scope | string | Yes | Whether the key is bound to one project (project) or applies to the account (account). Values: "account", "project". |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "name": {5 "type": "string",6 "description": "Name for the API key"7 },8 "project_reference": {9 "type": "string",10 "description": "Project ID or slug. Creating a project-scoped key requires project.api_keys.manage. Omit for a user-level key; a project-scoped API-key caller retains its enforced project when this field is omitted."11 },12 "expires_at": {13 "type": "string",14 "description": "Expiration date in ISO 8601 format"15 }16 },17 "required": [18 "name"19 ],20 "additionalProperties": false,21 "description": "Arguments for the create_api_key tool.",22 "$schema": "http://json-schema.org/draft-07/schema#"23}output-schema.json
1{2 "type": "object",3 "properties": {4 "id": {5 "type": "string",6 "description": "Unique identifier for the returned record."7 },8 "project_id": {9 "type": [10 "string",11 "null"12 ],13 "description": "Project identifier associated with this result."14 },15 "user_id": {16 "type": "string"17 },18 "name": {19 "type": "string",20 "description": "Human-readable name for the returned record."21 },22 "key": {23 "type": "string",24 "description": "Secret API key, returned only once. Do not echo, log or paste it into chat; write it straight to a secret store or environment variable."25 },26 "key_prefix": {27 "type": "string"28 },29 "expires_at": {30 "type": [31 "string",32 "null"33 ]34 },35 "created_at": {36 "type": "string",37 "description": "Creation timestamp in ISO 8601 format."38 },39 "scopes": {40 "type": "array",41 "items": {42 "type": "string"43 },44 "description": "List of scopes associated with this tool result."45 },46 "scope": {47 "type": "string",48 "enum": [49 "account",50 "project"51 ],52 "description": "Whether the key is bound to one project (project) or applies to the account (account)."53 }54 },55 "required": [56 "id",57 "project_id",58 "user_id",59 "name",60 "key",61 "key_prefix",62 "expires_at",63 "created_at",64 "scopes",65 "scope"66 ],67 "additionalProperties": false,68 "description": "Structured result returned by the create_api_key tool.",69 "$schema": "http://json-schema.org/draft-07/schema#"70}