Verifa Relationship Types API
The relationshipTypes API from Verifa, for relationshiptypes.
The relationshipTypes API from Verifa, for relationshiptypes.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/withverifa-com:withverifa-com-relationshiptypes-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Reference Relationship Types API
version: 1.0.0
servers:
- url: https://api.withverifa.com
description: https://api.withverifa.com
tags:
- name: relationshipTypes
paths:
/api/v1/relationship-types:
get:
operationId: relationshipTypes_listRelationshipTypes
summary: List custom relationship types
description: 'Returns org-defined relationship types for the current environment.
Use these alongside built-in user types when creating identity
relationships. Requires Enterprise plan.'
tags:
- relationshipTypes
parameters:
- name: include_inactive
in: query
description: Include disabled types in the results.
required: false
schema:
type: boolean
default: false
- name: Verifa-Version
in: header
description: 'API version date string (e.g. `2026-02-01`). If omitted, the version
pinned to your API key is used.
'
required: false
schema:
type: string
format: date
- name: Key-Inflection
in: header
description: 'Response key casing. Defaults to `snake`.
'
required: false
schema:
$ref: '#/components/schemas/ApiV1RelationshipTypesGetParametersKeyInflection'
responses:
'200':
description: A list of custom relationship types.
content:
application/json:
schema:
$ref: '#/components/schemas/Relationship_Types_listRelationshipTypes_Response_200'
'401':
description: Missing or invalid API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Feature not available on the current plan.
content:
application/json:
schema:
description: Any type
security:
- ApiKeyAuth: []
post:
operationId: relationshipTypes_createRelationshipType
summary: Create a custom relationship type
description: 'Creates a new org-defined relationship type. The `name` must match
`^[a-z][a-z0-9_]{1,63}$` and cannot collide with a built-in type.
Leave `inverse_label` blank to create a symmetric type.
**Required scope:** `settings:write` (or legacy `identities:write`).'
tags:
- relationshipTypes
parameters:
- name: Verifa-Version
in: header
description: 'API version date string (e.g. `2026-02-01`). If omitted, the version
pinned to your API key is used.
'
required: false
schema:
type: string
format: date
- name: Key-Inflection
in: header
description: 'Response key casing. Defaults to `snake`.
'
required: false
schema:
$ref: '#/components/schemas/ApiV1RelationshipTypesPostParametersKeyInflection'
- name: Idempotency-Key
in: header
description: 'Unique key for idempotent requests. Cached for 24 hours. Sending the
same key with different parameters returns `422`.
'
required: false
schema:
type: string
maxLength: 255
responses:
'201':
description: Relationship type created.
content:
application/json:
schema:
$ref: '#/components/schemas/CustomRelationshipType'
'401':
description: Missing or invalid API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Feature not available on the current plan.
content:
application/json:
schema:
description: Any type
'409':
description: A relationship type with this name already exists.
content:
application/json:
schema:
description: Any type
'422':
description: Request body failed validation.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: Machine-readable slug (unique per org/environment).
label:
type: string
description: What the related identity is to the source.
inverse_label:
type: string
description: What the source is to the related identity. Defaults to `label` if omitted.
description:
type: string
required:
- name
- label
security:
- ApiKeyAuth: []
/api/v1/relationship-types/{type_id}:
get:
operationId: relationshipTypes_getRelationshipType
summary: Get a custom relationship type
tags:
- relationshipTypes
parameters:
- name: type_id
in: path
description: Relationship type ID (`crel_*`).
required: true
schema:
type: string
- name: Verifa-Version
in: header
description: 'API version date string (e.g. `2026-02-01`). If omitted, the version
pinned to your API key is used.
'
required: false
schema:
type: string
format: date
- name: Key-Inflection
in: header
description: 'Response key casing. Defaults to `snake`.
'
required: false
schema:
$ref: '#/components/schemas/ApiV1RelationshipTypesTypeIdGetParametersKeyInflection'
responses:
'200':
description: Relationship type details.
content:
application/json:
schema:
$ref: '#/components/schemas/CustomRelationshipType'
'401':
description: Missing or invalid API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- ApiKeyAuth: []
delete:
operationId: relationshipTypes_deleteRelationshipType
summary: Delete a custom relationship type
description: 'Deletes a relationship type. Fails if any identity relationships
currently reference it.
**Required scope:** `settings:write` (or legacy `identities:write`).'
tags:
- relationshipTypes
parameters:
- name: type_id
in: path
description: Relationship type ID (`crel_*`).
required: true
schema:
type: string
- name: Verifa-Version
in: header
description: 'API version date string (e.g. `2026-02-01`). If omitted, the version
pinned to your API key is used.
'
required: false
schema:
type: string
format: date
responses:
'200':
description: Relationship type deleted.
content:
application/json:
schema:
$ref: '#/components/schemas/Relationship_Types_deleteRelationshipType_Response_200'
'401':
description: Missing or invalid API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Type is referenced by existing relationships.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- ApiKeyAuth: []
patch:
operationId: relationshipTypes_updateRelationshipType
summary: Update a custom relationship type
description: 'Update label, inverse_label, description, or is_active. The slug
(`name`) cannot be changed after creation.
**Required scope:** `settings:write` (or legacy `identities:write`).'
tags:
- relationshipTypes
parameters:
- name: type_id
in: path
description: Relationship type ID (`crel_*`).
required: true
schema:
type: string
- name: Verifa-Version
in: header
description: 'API version date string (e.g. `2026-02-01`). If omitted, the version
pinned to your API key is used.
'
required: false
schema:
type: string
format: date
- name: Key-Inflection
in: header
description: 'Response key casing. Defaults to `snake`.
'
required: false
schema:
$ref: '#/components/schemas/ApiV1RelationshipTypesTypeIdPatchParametersKeyInflection'
responses:
'200':
description: Updated relationship type.
content:
application/json:
schema:
$ref: '#/components/schemas/CustomRelationshipType'
'401':
description: Missing or invalid API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Request body failed validation.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
content:
application/json:
schema:
type: object
properties:
label:
type: string
inverse_label:
type: string
description:
type: string
is_active:
type: boolean
description: Inactive types can't be used for new relationships but existing ones still display.
security:
- ApiKeyAuth: []
components:
schemas:
ApiV1RelationshipTypesPostParametersKeyInflection:
type: string
enum:
- camel
- kebab
- snake
default: snake
title: ApiV1RelationshipTypesPostParametersKeyInflection
CustomRelationshipType:
type: object
properties:
id:
type: string
org_id:
type: string
name:
type: string
description: Machine-readable slug, unique per org/environment.
label:
type: string
description: Human-readable label for the outgoing direction (what the related identity is to the source).
inverse_label:
type: string
description: Label for the reverse direction. Equal to `label` for symmetric types.
description:
type:
- string
- 'null'
is_active:
type: boolean
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
required:
- id
- org_id
- name
- label
- inverse_label
- is_active
- created_at
- updated_at
title: CustomRelationshipType
ApiV1RelationshipTypesTypeIdGetParametersKeyInflection:
type: string
enum:
- camel
- kebab
- snake
default: snake
title: ApiV1RelationshipTypesTypeIdGetParametersKeyInflection
Error:
type: object
properties:
error:
type: string
description: Short error code.
detail:
type: string
description: Human-readable error description.
status_code:
type: integer
description: HTTP status code.
required:
- error
- status_code
title: Error
Relationship_Types_listRelationshipTypes_Response_200:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/CustomRelationshipType'
required:
- data
title: Relationship Types_listRelationshipTypes_Response_200
ApiV1RelationshipTypesGetParametersKeyInflection:
type: string
enum:
- camel
- kebab
- snake
default: snake
title: ApiV1RelationshipTypesGetParametersKeyInflection
ApiV1RelationshipTypesTypeIdPatchParametersKeyInflection:
type: string
enum:
- camel
- kebab
- snake
default: snake
title: ApiV1RelationshipTypesTypeIdPatchParametersKeyInflection
Relationship_Types_deleteRelationshipType_Response_200:
type: object
properties:
deleted:
type: boolean
required:
- deleted
title: Relationship Types_deleteRelationshipType_Response_200
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: 'Organization API key. Keys are prefixed with `vk_live_` (production) or
`vk_sandbox_` (sandbox).
'
BearerAuth:
type: http
scheme: bearer
description: 'Admin JWT token via `Authorization: Bearer <token>`.'