Unified.to · Capability
Unified.to API — auth
Unified.to API — auth. 2 operations. Lead operation: Authorize new connection. Self-contained Naftiko capability covering one Unified To business surface.
What You Can Do
GET
Getunifiedintegrationauth
— Authorize new connection
/v1/unified/integration/auth/{workspace-id}/{integration-type}
GET
Getunifiedintegrationlogin
— Sign in a user
/v1/unified/integration/login/{workspace-id}/{integration-type}
MCP Tools
authorize-new-connection
Authorize new connection
read-only
idempotent
sign-user
Sign in a user
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Unified.to API — auth
description: 'Unified.to API — auth. 2 operations. Lead operation: Authorize new connection. Self-contained Naftiko capability
covering one Unified To business surface.'
tags:
- Unified To
- auth
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
UNIFIED_TO_API_KEY: UNIFIED_TO_API_KEY
capability:
consumes:
- type: http
namespace: unified-core-auth
baseUri: https://api.unified.to
description: Unified.to API — auth business capability. Self-contained, no shared references.
resources:
- name: unified-integration-auth-workspace_id-integration_type
path: /unified/integration/auth/{workspace_id}/{integration_type}
operations:
- name: getunifiedintegrationauth
method: GET
description: Authorize new connection
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: success_redirect
in: query
type: string
description: The URL where you want the user to be redirect to after a successful authorization. The connection
ID will be appended with (id=<connectionId>) to this URL, as
- name: failure_redirect
in: query
type: string
description: The URL where you want the user to be redirect to after an unsuccessful authentication. An "error"
variable will be appended.
- name: state
in: query
type: string
description: Extra state to send back to your success URL
- name: external_xref
in: query
type: string
description: Your user identifier to associate with the new Integration
- name: scopes
in: query
type: array
- name: redirect
in: query
type: boolean
- name: env
in: query
type: string
- name: lang
in: query
type: string
description: 'Language: en, fr, es, it, pt, zh, hi'
- name: subdomain
in: query
type: string
description: Optional tenant domain or subdomain for integrations that require it to build the authorize, token,
or API URL. Depending on the integration, this may be a bare
- name: workspace_id
in: path
type: string
description: The ID of the workspace
required: true
- name: integration_type
in: path
type: string
description: Type of the supported integration
required: true
- name: unified-integration-login-workspace_id-integration_type
path: /unified/integration/login/{workspace_id}/{integration_type}
operations:
- name: getunifiedintegrationlogin
method: GET
description: Sign in a user
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: success_redirect
in: query
type: string
description: The URL where you want the user to be redirect to after a successful authentication/sign-in. A "jwt"
parameter will be appended to the URL which will contain a
- name: failure_redirect
in: query
type: string
description: The URL where you want the user to be redirect to after an unsuccessful authentication. An "error"
variable will be appended.
- name: state
in: query
type: string
description: Extra state to send back to your success URL
- name: redirect
in: query
type: boolean
- name: env
in: query
type: string
- name: workspace_id
in: path
type: string
description: The ID of the workspace
required: true
- name: integration_type
in: path
type: string
description: Type of the supported integration
required: true
authentication:
type: apikey
key: authorization
value: '{{env.UNIFIED_TO_API_KEY}}'
placement: header
exposes:
- type: rest
namespace: unified-core-auth-rest
port: 8080
description: REST adapter for Unified.to API — auth. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/unified/integration/auth/{workspace-id}/{integration-type}
name: unified-integration-auth-workspace-id-integration-type
description: REST surface for unified-integration-auth-workspace_id-integration_type.
operations:
- method: GET
name: getunifiedintegrationauth
description: Authorize new connection
call: unified-core-auth.getunifiedintegrationauth
with:
success_redirect: rest.success_redirect
failure_redirect: rest.failure_redirect
state: rest.state
external_xref: rest.external_xref
scopes: rest.scopes
redirect: rest.redirect
env: rest.env
lang: rest.lang
subdomain: rest.subdomain
workspace_id: rest.workspace_id
integration_type: rest.integration_type
outputParameters:
- type: object
mapping: $.
- path: /v1/unified/integration/login/{workspace-id}/{integration-type}
name: unified-integration-login-workspace-id-integration-type
description: REST surface for unified-integration-login-workspace_id-integration_type.
operations:
- method: GET
name: getunifiedintegrationlogin
description: Sign in a user
call: unified-core-auth.getunifiedintegrationlogin
with:
success_redirect: rest.success_redirect
failure_redirect: rest.failure_redirect
state: rest.state
redirect: rest.redirect
env: rest.env
workspace_id: rest.workspace_id
integration_type: rest.integration_type
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: unified-core-auth-mcp
port: 9090
transport: http
description: MCP adapter for Unified.to API — auth. One tool per consumed operation, routed inline through this capability's
consumes block.
tools:
- name: authorize-new-connection
description: Authorize new connection
hints:
readOnly: true
destructive: false
idempotent: true
call: unified-core-auth.getunifiedintegrationauth
with:
success_redirect: tools.success_redirect
failure_redirect: tools.failure_redirect
state: tools.state
external_xref: tools.external_xref
scopes: tools.scopes
redirect: tools.redirect
env: tools.env
lang: tools.lang
subdomain: tools.subdomain
workspace_id: tools.workspace_id
integration_type: tools.integration_type
outputParameters:
- type: object
mapping: $.
- name: sign-user
description: Sign in a user
hints:
readOnly: true
destructive: false
idempotent: true
call: unified-core-auth.getunifiedintegrationlogin
with:
success_redirect: tools.success_redirect
failure_redirect: tools.failure_redirect
state: tools.state
redirect: tools.redirect
env: tools.env
workspace_id: tools.workspace_id
integration_type: tools.integration_type
outputParameters:
- type: object
mapping: $.