CoreStack User Delegation API
User Delegation Rules and Reports
User Delegation Rules and Reports
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/corestack:corestack-userdelegation-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. 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: CoreStack External User Delegation API
version: 1.0.0
termsOfService: http://corestack.io/
license:
name: CoreStack Inc License
url: http://corestack.io/licenses/LICENSE-2.0.html
description: User Delegation Rules and Reports
servers:
- url: /
tags:
- name: UserDelegation
description: User Delegation Rules and Reports
paths:
/v1/user_delegation/master_accounts/{master_account_id}/rules:
parameters:
- name: master_account_id
in: path
required: true
schema:
type: string
post:
responses:
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/UserDelegationResponse'
summary: Create User Delegation
description: Creates a new user delegation
operationId: CreateUserDelegation
security:
- auth_token: []
tags:
- UserDelegation
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UserDelegationRequest'
required: true
/v1/user_delegation/master_accounts/{master_account_id}/rules/batch:
parameters:
- name: master_account_id
in: path
required: true
schema:
type: string
post:
responses:
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/UserDelegationBatchResponse'
summary: Batch User Delegation
operationId: BatchUserDelegation
security:
- auth_token: []
tags:
- UserDelegation
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BatchRequest'
required: true
/v1/user_delegation/master_accounts/{master_account_id}/rules/item/{rule_id}:
parameters:
- name: master_account_id
in: path
required: true
schema:
type: string
- name: rule_id
in: path
required: true
schema:
type: string
delete:
responses:
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'200':
description: Removed
content:
application/json:
schema:
type: boolean
summary: Delete User Delegation
description: Delete user delegation
operationId: DeleteUserDelegation
security:
- auth_token: []
tags:
- UserDelegation
put:
responses:
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/UserDelegationResponse'
summary: Update User Delegation
description: Update user delegation
operationId: UpdateUserDelegation
security:
- auth_token: []
tags:
- UserDelegation
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UserDelegationRequest'
required: true
/v1/user_delegation/master_accounts/{master_account_id}/rules/list:
parameters:
- name: master_account_id
in: path
required: true
schema:
type: string
post:
responses:
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ListResponse'
summary: List User Delegation
description: List user delegation
operationId: ListUserDelegation
security:
- auth_token: []
tags:
- UserDelegation
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UserDelegationListRequest'
required: true
/v1/user_delegation/master_accounts/{master_account_id}/rules/refresh:
parameters:
- name: master_account_id
in: path
required: true
schema:
type: string
get:
responses:
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'200':
description: Refreshed
content:
application/json:
schema:
type: boolean
summary: Refresh User Delegation
operationId: RefreshUserDelegation
security:
- auth_token: []
tags:
- UserDelegation
/v1/user_delegation/report/{user_id}:
parameters:
- name: user_id
in: path
required: true
schema:
type: string
get:
responses:
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ModelError'
'200':
description: Success
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/UserDelegationSummary'
summary: Get User Delegation Report
description: Get user delegation report
operationId: GetUserDelegationReport
security:
- auth_token: []
tags:
- UserDelegation
components:
schemas:
UserDelegationResponse:
properties:
id:
type: string
description: User delegation id
type: object
UserDelegation:
allOf:
- $ref: '#/components/schemas/UserDelegationRequest'
- properties:
source_master_account_id:
type: string
description: User delegation source account master id
created_at:
type: string
format: date-time
description: Date and Time of Creation
created_by:
type: string
description: User that created delegation
updated_at:
type: string
format: date-time
description: Date and Time of Last Update
updated_by:
type: string
description: User that last updated delegation
type: object
UserDelegationUserGroup:
properties:
id:
type: string
description: User group id
name:
type: string
description: User group name
type: object
ModelError:
required:
- message
properties:
message:
type: string
description: Error response message.
type: object
UserDelegationSummary:
properties:
master_account_id:
type: string
description: User delegation master account id
master_account_name:
type: string
description: User delegation master account name
hierarchy_level:
type: string
description: User delegation hierarchy level
tenants:
type: array
description: Tenants in the delegation
items:
$ref: '#/components/schemas/UserDelegationTenant'
user_groups:
type: array
description: UserGroups in the delegation
items:
$ref: '#/components/schemas/UserDelegationUserGroup'
type: object
UserDelegationSortCriteria:
required:
- column
properties:
column:
type: string
example: CreatedAt
enum:
- CreatedAt
x-cs-enum-type: UserDelegationSortColumn
ascending:
type: boolean
type: object
BatchRequest:
properties:
ids:
type: array
description: Identifiers to fetch
items:
type: string
type: object
UserDelegationBatchResponse:
properties:
results:
type: object
description: Map from identifier to response model
additionalProperties:
$ref: '#/components/schemas/UserDelegation'
type: object
ListContext:
properties:
batch_size:
type: integer
description: Max number of ids in the response
batch_offset:
type: integer
description: Offset of batches into the results. First batch is 0
total:
type: integer
description: Total number of results
type: object
UserDelegationRole:
properties:
id:
type: string
description: Role id
name:
type: string
description: Role name
type: object
UserDelegationListRequest:
properties:
list_context:
description: Optional list context
$ref: '#/components/schemas/ListContext'
sort:
type: array
description: Sort criteria
items:
$ref: '#/components/schemas/UserDelegationSortCriteria'
type: object
ListResponse:
properties:
results:
type: array
description: List of result identifiers
items:
type: string
next_list_context:
description: List context
$ref: '#/components/schemas/ListContext'
type: object
UserDelegationRequest:
properties:
source_user_groups:
type: array
items:
type: string
description: User delegation source user groups
source_roles:
type: array
items:
type: string
description: User delegation source roles
source_users:
type: array
items:
type: string
description: User delegation source users
target_master_account_id:
type: string
description: User delegation target account master id
target_roles:
type: array
items:
type: string
description: User delegation target roles
target_user_groups:
type: array
items:
type: string
description: User delegation target user groups
type: object
UserDelegationTenant:
properties:
tenant_id:
type: string
description: Tenant id
tenant_name:
type: string
description: Tenant name
roles:
type: array
description: Delegation roles
items:
$ref: '#/components/schemas/UserDelegationRole'
type: object
securitySchemes:
auth_token:
type: apiKey
in: header
name: X-Auth-Token