Read the current API connection
Return the current user, selected studio, studio time zone and available REST capabilities. Key permissions narrow current TatTool authority.
Read the current API connection
GET /api/v1/connection
Return the current user, selected studio, studio time zone and available REST capabilities. Key permissions narrow current TatTool authority.
API version: 1.0.0; source revision: development; SHA-256: 48cf3a12f6c45a2618345f604165f68f7efcee3648a8b923ccd02ef716aa8a9e.
Group: Connection.
Required permissions: ["organization:read"].
Authentication: Authorization: Bearer <user-owned-api-key>.
Parameters
Request examples
[
{
"name": "quickstart",
"request": {
"query": {}
}
}
]curl
curl --request GET \
--header 'Authorization: Bearer <user-owned-api-key>' \
"$TATTOOL_API_URL/api/v1/connection"Responses
200
Current authorized connection. Media type: application/json
datadata.availableCapabilitiesdata.grantedScopesdata.linksdata.links.calendardata.links.clientsdata.links.consentTemplatesdata.links.dashboarddata.links.flowsdata.links.inkInventorydata.links.messageTemplatesdata.links.paymentsdata.organizationdata.organization.iddata.organization.namedata.organization.timeZonedata.userdata.user.iddata.user.name
Schema and constraints:
{
"properties": {
"data": {
"properties": {
"availableCapabilities": {
"description": "Currently authorized capabilities for this transport.",
"items": {
"type": "string"
},
"type": "array"
},
"grantedScopes": {
"description": "Granted TatTool API-key permissions or MCP scopes; these only narrow live user authority.",
"items": {
"type": "string"
},
"type": "array"
},
"links": {
"description": "Authenticated studio navigation for currently available capabilities.",
"properties": {
"calendar": {
"anyOf": [
{
"format": "uri",
"type": "string"
},
{
"type": "null"
}
],
"description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
},
"clients": {
"anyOf": [
{
"format": "uri",
"type": "string"
},
{
"type": "null"
}
],
"description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
},
"consentTemplates": {
"anyOf": [
{
"format": "uri",
"type": "string"
},
{
"type": "null"
}
],
"description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
},
"dashboard": {
"anyOf": [
{
"format": "uri",
"type": "string"
},
{
"type": "null"
}
],
"description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
},
"flows": {
"anyOf": [
{
"format": "uri",
"type": "string"
},
{
"type": "null"
}
],
"description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
},
"inkInventory": {
"anyOf": [
{
"format": "uri",
"type": "string"
},
{
"type": "null"
}
],
"description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
},
"messageTemplates": {
"anyOf": [
{
"format": "uri",
"type": "string"
},
{
"type": "null"
}
],
"description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
},
"payments": {
"anyOf": [
{
"format": "uri",
"type": "string"
},
{
"type": "null"
}
],
"description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
}
},
"type": "object"
},
"organization": {
"properties": {
"id": {
"description": "Stable record ID.",
"type": "string"
},
"name": {
"description": "Display name.",
"type": "string"
},
"timeZone": {
"description": "IANA time zone.",
"type": "string"
}
},
"required": [
"id",
"name",
"timeZone"
],
"type": "object"
},
"user": {
"properties": {
"id": {
"description": "Current user ID.",
"type": "string"
},
"name": {
"description": "Current user display name.",
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
}
},
"required": [
"user",
"organization",
"grantedScopes",
"availableCapabilities"
],
"type": "object"
}
},
"required": [
"data"
],
"type": "object"
}Synthetic example:
{
"data": {
"availableCapabilities": [
"getConnection"
],
"grantedScopes": [
"organization:read"
],
"organization": {
"id": "studio-example",
"name": "Example studio",
"timeZone": "Europe/Copenhagen"
},
"user": {
"id": "user-example",
"name": "Example artist"
}
}
}401
Authentication is required. Media type: application/json
errorerror.codeerror.fieldErrorserror.messageerror.operationIderror.reasonerror.retryableerror.retryAfterSeconds
Schema and constraints:
{
"properties": {
"error": {
"properties": {
"code": {
"description": "Stable safe failure code.",
"enum": [
"INVALID_INPUT",
"UNAUTHENTICATED",
"FORBIDDEN",
"NOT_FOUND",
"CONFLICT",
"RATE_LIMITED",
"CAPABILITY_UNAVAILABLE",
"PROVIDER_UNAVAILABLE"
],
"type": "string"
},
"fieldErrors": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"description": "Safe field-level validation details.",
"propertyNames": {
"type": "string"
},
"type": "object"
},
"message": {
"description": "Fixed public failure message, without provider or private details.",
"type": "string"
},
"operationId": {
"description": "Original domain recovery operation ID when available.",
"type": "string"
},
"reason": {
"description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
"enum": [
"STALE_VERSION",
"EDIT_SESSION_EXPIRED",
"IDEMPOTENCY_MISMATCH",
"DOMAIN_CONFLICT",
"SLOT_UNAVAILABLE",
"INCOMPLETE_AVAILABILITY",
"MISSING_OPENING_HOURS"
],
"type": "string"
},
"retryable": {
"description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
"type": "boolean"
},
"retryAfterSeconds": {
"description": "Seconds before retry or reconciliation.",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
}
},
"required": [
"code",
"message",
"retryable"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
}Synthetic example:
{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication is required.",
"retryable": false
}
}403
Access denied. Media type: application/json
errorerror.codeerror.fieldErrorserror.messageerror.operationIderror.reasonerror.retryableerror.retryAfterSeconds
Schema and constraints:
{
"properties": {
"error": {
"properties": {
"code": {
"description": "Stable safe failure code.",
"enum": [
"INVALID_INPUT",
"UNAUTHENTICATED",
"FORBIDDEN",
"NOT_FOUND",
"CONFLICT",
"RATE_LIMITED",
"CAPABILITY_UNAVAILABLE",
"PROVIDER_UNAVAILABLE"
],
"type": "string"
},
"fieldErrors": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"description": "Safe field-level validation details.",
"propertyNames": {
"type": "string"
},
"type": "object"
},
"message": {
"description": "Fixed public failure message, without provider or private details.",
"type": "string"
},
"operationId": {
"description": "Original domain recovery operation ID when available.",
"type": "string"
},
"reason": {
"description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
"enum": [
"STALE_VERSION",
"EDIT_SESSION_EXPIRED",
"IDEMPOTENCY_MISMATCH",
"DOMAIN_CONFLICT",
"SLOT_UNAVAILABLE",
"INCOMPLETE_AVAILABILITY",
"MISSING_OPENING_HOURS"
],
"type": "string"
},
"retryable": {
"description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
"type": "boolean"
},
"retryAfterSeconds": {
"description": "Seconds before retry or reconciliation.",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
}
},
"required": [
"code",
"message",
"retryable"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
}Synthetic example:
{
"error": {
"code": "FORBIDDEN",
"message": "Access denied.",
"retryable": false
}
}404
Record not found. Media type: application/json
errorerror.codeerror.fieldErrorserror.messageerror.operationIderror.reasonerror.retryableerror.retryAfterSeconds
Schema and constraints:
{
"properties": {
"error": {
"properties": {
"code": {
"description": "Stable safe failure code.",
"enum": [
"INVALID_INPUT",
"UNAUTHENTICATED",
"FORBIDDEN",
"NOT_FOUND",
"CONFLICT",
"RATE_LIMITED",
"CAPABILITY_UNAVAILABLE",
"PROVIDER_UNAVAILABLE"
],
"type": "string"
},
"fieldErrors": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"description": "Safe field-level validation details.",
"propertyNames": {
"type": "string"
},
"type": "object"
},
"message": {
"description": "Fixed public failure message, without provider or private details.",
"type": "string"
},
"operationId": {
"description": "Original domain recovery operation ID when available.",
"type": "string"
},
"reason": {
"description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
"enum": [
"STALE_VERSION",
"EDIT_SESSION_EXPIRED",
"IDEMPOTENCY_MISMATCH",
"DOMAIN_CONFLICT",
"SLOT_UNAVAILABLE",
"INCOMPLETE_AVAILABILITY",
"MISSING_OPENING_HOURS"
],
"type": "string"
},
"retryable": {
"description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
"type": "boolean"
},
"retryAfterSeconds": {
"description": "Seconds before retry or reconciliation.",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
}
},
"required": [
"code",
"message",
"retryable"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
}Synthetic example:
{
"error": {
"code": "NOT_FOUND",
"message": "Record not found.",
"retryable": false
}
}409
The operation conflicts with the current state. Media type: application/json
errorerror.codeerror.fieldErrorserror.messageerror.operationIderror.reasonerror.retryableerror.retryAfterSeconds
Schema and constraints:
{
"properties": {
"error": {
"properties": {
"code": {
"description": "Stable safe failure code.",
"enum": [
"INVALID_INPUT",
"UNAUTHENTICATED",
"FORBIDDEN",
"NOT_FOUND",
"CONFLICT",
"RATE_LIMITED",
"CAPABILITY_UNAVAILABLE",
"PROVIDER_UNAVAILABLE"
],
"type": "string"
},
"fieldErrors": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"description": "Safe field-level validation details.",
"propertyNames": {
"type": "string"
},
"type": "object"
},
"message": {
"description": "Fixed public failure message, without provider or private details.",
"type": "string"
},
"operationId": {
"description": "Original domain recovery operation ID when available.",
"type": "string"
},
"reason": {
"description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
"enum": [
"STALE_VERSION",
"EDIT_SESSION_EXPIRED",
"IDEMPOTENCY_MISMATCH",
"DOMAIN_CONFLICT",
"SLOT_UNAVAILABLE",
"INCOMPLETE_AVAILABILITY",
"MISSING_OPENING_HOURS"
],
"type": "string"
},
"retryable": {
"description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
"type": "boolean"
},
"retryAfterSeconds": {
"description": "Seconds before retry or reconciliation.",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
}
},
"required": [
"code",
"message",
"retryable"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
}Synthetic example:
{
"error": {
"code": "CONFLICT",
"message": "The operation conflicts with the current state.",
"reason": "DOMAIN_CONFLICT",
"retryable": false
}
}422
Invalid operation input. Media type: application/json
errorerror.codeerror.fieldErrorserror.messageerror.operationIderror.reasonerror.retryableerror.retryAfterSeconds
Schema and constraints:
{
"properties": {
"error": {
"properties": {
"code": {
"description": "Stable safe failure code.",
"enum": [
"INVALID_INPUT",
"UNAUTHENTICATED",
"FORBIDDEN",
"NOT_FOUND",
"CONFLICT",
"RATE_LIMITED",
"CAPABILITY_UNAVAILABLE",
"PROVIDER_UNAVAILABLE"
],
"type": "string"
},
"fieldErrors": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"description": "Safe field-level validation details.",
"propertyNames": {
"type": "string"
},
"type": "object"
},
"message": {
"description": "Fixed public failure message, without provider or private details.",
"type": "string"
},
"operationId": {
"description": "Original domain recovery operation ID when available.",
"type": "string"
},
"reason": {
"description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
"enum": [
"STALE_VERSION",
"EDIT_SESSION_EXPIRED",
"IDEMPOTENCY_MISMATCH",
"DOMAIN_CONFLICT",
"SLOT_UNAVAILABLE",
"INCOMPLETE_AVAILABILITY",
"MISSING_OPENING_HOURS"
],
"type": "string"
},
"retryable": {
"description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
"type": "boolean"
},
"retryAfterSeconds": {
"description": "Seconds before retry or reconciliation.",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
}
},
"required": [
"code",
"message",
"retryable"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
}Synthetic example:
{
"error": {
"code": "INVALID_INPUT",
"message": "Invalid operation input.",
"retryable": false
}
}429
Request limit reached. Media type: application/json
errorerror.codeerror.fieldErrorserror.messageerror.operationIderror.reasonerror.retryableerror.retryAfterSeconds
Schema and constraints:
{
"properties": {
"error": {
"properties": {
"code": {
"description": "Stable safe failure code.",
"enum": [
"INVALID_INPUT",
"UNAUTHENTICATED",
"FORBIDDEN",
"NOT_FOUND",
"CONFLICT",
"RATE_LIMITED",
"CAPABILITY_UNAVAILABLE",
"PROVIDER_UNAVAILABLE"
],
"type": "string"
},
"fieldErrors": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"description": "Safe field-level validation details.",
"propertyNames": {
"type": "string"
},
"type": "object"
},
"message": {
"description": "Fixed public failure message, without provider or private details.",
"type": "string"
},
"operationId": {
"description": "Original domain recovery operation ID when available.",
"type": "string"
},
"reason": {
"description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
"enum": [
"STALE_VERSION",
"EDIT_SESSION_EXPIRED",
"IDEMPOTENCY_MISMATCH",
"DOMAIN_CONFLICT",
"SLOT_UNAVAILABLE",
"INCOMPLETE_AVAILABILITY",
"MISSING_OPENING_HOURS"
],
"type": "string"
},
"retryable": {
"description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
"type": "boolean"
},
"retryAfterSeconds": {
"description": "Seconds before retry or reconciliation.",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
}
},
"required": [
"code",
"message",
"retryable"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
}Synthetic example:
{
"error": {
"code": "RATE_LIMITED",
"message": "Request limit reached.",
"retryable": true,
"retryAfterSeconds": 60
}
}503
The provider is unavailable. Media type: application/json
errorerror.codeerror.fieldErrorserror.messageerror.operationIderror.reasonerror.retryableerror.retryAfterSeconds
Schema and constraints:
{
"properties": {
"error": {
"properties": {
"code": {
"description": "Stable safe failure code.",
"enum": [
"INVALID_INPUT",
"UNAUTHENTICATED",
"FORBIDDEN",
"NOT_FOUND",
"CONFLICT",
"RATE_LIMITED",
"CAPABILITY_UNAVAILABLE",
"PROVIDER_UNAVAILABLE"
],
"type": "string"
},
"fieldErrors": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"description": "Safe field-level validation details.",
"propertyNames": {
"type": "string"
},
"type": "object"
},
"message": {
"description": "Fixed public failure message, without provider or private details.",
"type": "string"
},
"operationId": {
"description": "Original domain recovery operation ID when available.",
"type": "string"
},
"reason": {
"description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
"enum": [
"STALE_VERSION",
"EDIT_SESSION_EXPIRED",
"IDEMPOTENCY_MISMATCH",
"DOMAIN_CONFLICT",
"SLOT_UNAVAILABLE",
"INCOMPLETE_AVAILABILITY",
"MISSING_OPENING_HOURS"
],
"type": "string"
},
"retryable": {
"description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
"type": "boolean"
},
"retryAfterSeconds": {
"description": "Seconds before retry or reconciliation.",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
}
},
"required": [
"code",
"message",
"retryable"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
}Synthetic example:
{
"error": {
"code": "PROVIDER_UNAVAILABLE",
"message": "The provider is unavailable.",
"retryable": false
}
}