Discovery needs no key. Ratings and market analysis are Pro.
Get an API 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.
openapi: 3.2.0
info:
title: External Employee Roles API
version: 1.0.8
description: '**AlayaCare IDs:**
The following terms are used to reference IDs that identify resources in AlayaCare:
- employee_id
- contact_id
**External IDs**
The following terms are used to reference IDs that identify resources systems external to AlayaCare:
- external_employee_id
- external_contact_id
External IDs are required to be unique.'
servers:
- url: https://homecare.alayacare.ca/ext/api/v2/employees
tags:
- name: Roles
paths:
/roles:
get:
tags:
- Roles
parameters:
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/count'
summary: Get a list of available employee roles
responses:
'200':
description: A list of roles
content:
application/json:
schema:
$ref: '#/components/schemas/RoleList'
'401':
$ref: '#/components/responses/ErrorResponseAuthentication'
operationId: getRoles
x-operation-id-source: derived
components:
parameters:
page:
description: Filter by page number.
name: page
in: query
required: false
schema:
type: integer
default: 1
count:
description: Number of items per page.
name: count
in: query
required: false
schema:
type: integer
default: 100
schemas:
BranchSummary:
description: Branch summary
type: object
properties:
id:
type: integer
description: ID of the branch
example: 1
name:
type: string
description: Name of the branch
example: Headquarters
RoleList:
allOf:
- $ref: '#/components/schemas/PaginatedList'
description: Paginated list of roles
type: object
properties:
items:
type: array
items:
allOf:
- $ref: '#/components/schemas/Role'
properties:
branch:
$ref: '#/components/schemas/BranchSummary'
ErrorResponse:
description: Error response
type: object
properties:
code:
type: integer
description: Response code
message:
type: string
description: Detailed error message
required:
- code
- message
Role:
description: AlayaCare role
type: object
properties:
id:
type: integer
description: ID of the role
example: 1
name:
type: string
description: Name of the role
example: csc
description:
type: string
description: Name of the role in the web application
example: Coordinator
category:
type: string
description: Category of the role
example: admin
required:
- id
- name
PaginatedList:
description: Base model of all paginated lists
type: object
properties:
count:
type: integer
description: Number of items in the response
example: 1
page:
type: integer
description: Current page number
example: 1
total_pages:
type: integer
description: Total number of pages availbale
example: 1
required:
- count
- page
- total_pages
- items
responses:
ErrorResponseAuthentication:
description: Authorization required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
code: 401
message: Authorization required.
securitySchemes:
basic_auth:
type: http
scheme: basic
description: Basic HTTP auth over https