Skip to main content

AI assistants (SyAuth MCP server)

Manage your SyAuth account from an AI assistant such as Claude. The MCP server is https://api.syauth.com/e/v1/assistant/mcp (with or without the final slash). The assistant signs you in with OAuth: you approve it on the dashboard and choose read-only or read-and-manage access, and it receives a developer access token valid 30 days that you can revoke in Settings → General → Developer Access Tokens. Every tool is one request to the developer API with that token, so scopes, workspace access and plan limits apply as usual. Follow the AI assistants guide. Not to be confused with MCP server sign-in, where SyAuth signs in the users of your own MCP server.

API conventions · All endpoints · Schemas

/e/v1/assistant/mcp​

SyAuth's MCP server (Model Context Protocol, Streamable HTTP answered in JSON). Used by AI assistants, not called by hand.

Authentication: Authorization: Bearer syat_..., a developer access token, usually obtained by the assistant through OAuth. Without a valid token the answer is 401 with WWW-Authenticate: Bearer resource_metadata="https://api.syauth.com/.well-known/oauth-protected-resource/e/v1/assistant/mcp". Requests with an Origin header (web pages) are refused with 403.

GET​

405: no event stream.

Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

405 — text/XML

HTML or text/XML response; do not parse as JSON.

DELETE​

405: no session to end.

Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

405 — text/XML

HTML or text/XML response; do not parse as JSON.

POST​

JSON-RPC 2.0: initialize, ping, tools/list, tools/call. 24 tools: get_plan, get_stats, list_workspaces, create_workspace, list_applications, get_application, create_application, update_application, list_users, get_user, create_user, update_user, list_groups, create_group, list_group_members, list_user_groups, add_user_to_group, remove_user_from_group, list_audit_events, list_email_templates, list_social_providers, list_saml_applications, list_mcp_servers, create_mcp_server. Read tools carry readOnlyHint, the others destructiveHint. No tool deletes a workspace, an application or a user.

Request fields (combine with the requirements and schema above):

LocationFieldFallback when absent
headerOriginnot supplied
headerAuthorization''
Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

200 — json

JSON response varies with the request. See the operation requirements and linked schema; validation errors may be keyed by field name.

200 — json


[
null
]

202 — text/XML

HTML or text/XML response; do not parse as JSON.

400 — json

JSON response varies with the request. See the operation requirements and linked schema; validation errors may be keyed by field name.

401 — json


{
"error": "EXAMPLE_ERROR",
"code": "not_authenticated"
}

403 — json


{
"error": "Not available from a browser.",
"code": "forbidden"
}

413 — json

JSON response varies with the request. See the operation requirements and linked schema; validation errors may be keyed by field name.

/e/v1/assistant/mcp/​

SyAuth's MCP server (Model Context Protocol, Streamable HTTP answered in JSON). Used by AI assistants, not called by hand.

Authentication: Authorization: Bearer syat_..., a developer access token, usually obtained by the assistant through OAuth. Without a valid token the answer is 401 with WWW-Authenticate: Bearer resource_metadata="https://api.syauth.com/.well-known/oauth-protected-resource/e/v1/assistant/mcp". Requests with an Origin header (web pages) are refused with 403.

GET​

405: no event stream.

Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

405 — text/XML

HTML or text/XML response; do not parse as JSON.

DELETE​

405: no session to end.

Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

405 — text/XML

HTML or text/XML response; do not parse as JSON.

POST​

JSON-RPC 2.0: initialize, ping, tools/list, tools/call. 24 tools: get_plan, get_stats, list_workspaces, create_workspace, list_applications, get_application, create_application, update_application, list_users, get_user, create_user, update_user, list_groups, create_group, list_group_members, list_user_groups, add_user_to_group, remove_user_from_group, list_audit_events, list_email_templates, list_social_providers, list_saml_applications, list_mcp_servers, create_mcp_server. Read tools carry readOnlyHint, the others destructiveHint. No tool deletes a workspace, an application or a user.

Request fields (combine with the requirements and schema above):

LocationFieldFallback when absent
headerOriginnot supplied
headerAuthorization''
Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

200 — json

JSON response varies with the request. See the operation requirements and linked schema; validation errors may be keyed by field name.

200 — json


[
null
]

202 — text/XML

HTML or text/XML response; do not parse as JSON.

400 — json

JSON response varies with the request. See the operation requirements and linked schema; validation errors may be keyed by field name.

401 — json


{
"error": "EXAMPLE_ERROR",
"code": "not_authenticated"
}

403 — json


{
"error": "Not available from a browser.",
"code": "forbidden"
}

413 — json

JSON response varies with the request. See the operation requirements and linked schema; validation errors may be keyed by field name.

/e/v1/assistant/.well-known/oauth-authorization-server​

Authorization server metadata (RFC 8414) of the issuer https://api.syauth.com/e/v1/assistant. Also at https://api.syauth.com/.well-known/oauth-authorization-server/e/v1/assistant. MCP clients read it themselves.

OPTIONS​

CORS preflight. No body.

Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

204 — text/XML

No response body.

GET​

No body. Authorization endpoint on the dashboard (https://syauth.com/en/assistant/authorize), token and registration endpoints, PKCE S256 only, public clients (none), client_id_metadata_document_supported: true.

Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

200 — json

JSON response varies with the request. See the operation requirements and linked schema; validation errors may be keyed by field name.

/e/v1/assistant/.well-known/openid-configuration​

Authorization server metadata (RFC 8414) of the issuer https://api.syauth.com/e/v1/assistant. Also at https://api.syauth.com/.well-known/oauth-authorization-server/e/v1/assistant. MCP clients read it themselves.

OPTIONS​

CORS preflight. No body.

Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

204 — text/XML

No response body.

GET​

No body. Authorization endpoint on the dashboard (https://syauth.com/en/assistant/authorize), token and registration endpoints, PKCE S256 only, public clients (none), client_id_metadata_document_supported: true.

Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

200 — json

JSON response varies with the request. See the operation requirements and linked schema; validation errors may be keyed by field name.

/e/v1/assistant/register/​

Dynamic client registration (RFC 7591) for AI assistants. You do not call it yourself: the MCP client does, when it does not identify itself with a client metadata document.

OPTIONS​

CORS preflight. No body.

Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

204 — text/XML

No response body.

POST​

JSON redirect_uris (1 to 5 exact addresses, https or http on localhost), optional client_name. Public clients only. 100 registrations per hour per address. Registration grants nothing until you approve the assistant.

Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

201 — json

JSON response varies with the request. See the operation requirements and linked schema; validation errors may be keyed by field name.

/e/v1/assistant/token/​

Exchange the one-time code for a developer access token.

OPTIONS​

CORS preflight. No body.

Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

204 — text/XML

No response body.

POST​

Form-encoded (or JSON) grant_type=authorization_code, code, code_verifier, client_id, redirect_uri. A code works once, within 60 seconds. Returns a syat_ developer access token valid 30 days with the scopes of the access you approved (expires_in, scope); no refresh token: the assistant asks you again after 30 days.

Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

200 — json

JSON response varies with the request. See the operation requirements and linked schema; validation errors may be keyed by field name.

The dashboard's consent step for an AI assistant. Called by the consent page on syauth.com, never with a developer token.

Authentication: your signed-in dashboard session only. Developer access tokens are refused, so an assistant can never approve itself.

Query: the assistant's authorization request (client_id, redirect_uri, response_type=code, code_challenge, code_challenge_method=S256, state). Returns client_name (with the host of its metadata document when it has one), redirect_host, the scopes of each access level and token_days.

Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

200 — json


{
"client_name": "EXAMPLE_CLIENT_NAME",
"redirect_host": "EXAMPLE_REDIRECT_HOST",
"accesses": "EXAMPLE_ACCESSES",
"token_days": "EXAMPLE_TOKEN_DAYS"
}

POST​

The same fields plus approve (boolean) and access (read or manage). Returns redirect_to: the assistant's return address with code, state and iss, or error=access_denied.

Success and error response examples

Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.

200 — json


{
"redirect_to": "EXAMPLE_REDIRECT_TO"
}

400 — json


{
"error": "Invalid request",
"details": "EXAMPLE_DETAILS"
}