Tray.ai Permissions API
{'$ref': 'descriptions/trayapi/tags/permissions.md'}
{'$ref': 'descriptions/trayapi/tags/permissions.md'}
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/tray-ai-permissions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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. 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: Tray Permissions API
version: 1.0.0
x-logo:
url: ../images/tray-dev-logo.svg
altText: Tray.ai logo
description:
$ref: descriptions/trayapi/tags/permissions.md
servers:
- url: https://api.tray.io
description: US
- url: https://api.eu1.tray.io
description: EU
- url: https://api.ap1.tray.io
description: APAC
security:
- bearerAuth: []
tags:
- name: Permissions
x-displayName: Permissions
description:
$ref: descriptions/trayapi/tags/permissions.md
paths:
/cdk/v1/permissions/connectors/{connector-name}/versions/{connector-version}/share-with-emails:
post:
operationId: share-with-emails
summary: Share with emails
description:
$ref: descriptions/trayapi/endpoints/permissions/shareWithEmails.md
tags:
- Permissions
parameters:
- in: header
name: Authorization
required: true
schema:
type: string
description: The RBAC token. Follow this [page](https://docs.tray.ai/platform/enterprise-core/organisation-management/api-users-tokens) to know how to generate one.
example: Bearer 3fd74d349xxxxxxxxxxxxxxxxxxxxxxxxd90df521
- in: path
name: connector-name
required: true
schema:
type: string
description: The hypenated name of the connector being deployed.
example: my-connector
- in: path
name: connector-version
required: true
schema:
type: string
description: The version of the connector being deployed.
example: '1.0'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ShareWithEmailsRequest'
example:
emails:
- john.doe@domain.com
- jane.doe@domain.com
responses:
200:
description: OK - Connector version was succesfully shared with users.
content:
application/json:
schema:
$ref: '#/components/schemas/ShareWithEmailsResponse'
example:
message: 2 permissions added
400:
description: Invalid input
content:
application/json:
schema:
$ref: '#/components/schemas/RequestFailed'
401:
description: Unauthorized - Verify the token validity
content:
application/json:
schema:
$ref: '#/components/schemas/RequestFailed'
403:
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/RequestFailed'
404:
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/RequestFailed'
429:
description: Limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/RequestFailed'
500:
description: Internal error
content:
application/json:
schema:
$ref: '#/components/schemas/RequestFailed'
components:
schemas:
ShareWithEmailsRequest:
title: ShareWithEmailsRequest
type: object
required:
- emails
properties:
emails:
type: array
items:
type: string
RequestFailed:
type: object
properties:
message:
type: string
code:
type: string
ShareWithEmailsResponse:
title: ShareWithEmailsResponse
type: object
required:
- message
properties:
message:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
x-tagGroups:
- name: Introduction
tags:
- overview
- authentication
- regionality
- collection
- rate-limits
- name: Core
tags:
- authentications
- connectors
- triggers
- workspaces
- users
- projects
- solutions
- name: CDK
tags:
- deployments
- permissions
- name: On Premise
tags:
- agent-groups
- agent-instances