Laurel Code Types API
The Code Types API from Laurel — 10 operation(s) for code types.
The Code Types API from Laurel — 10 operation(s) for code types.
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/laurel-code-types-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: Time Service Code Types API
description: ''
version: '1'
contact: {}
servers: []
security:
- ApiBearerAuth: []
tags:
- name: Code Types
paths:
/api/v1/code-types:
get:
operationId: CodeTypeController_findMany_v1
parameters:
- name: customerDefaultable
required: false
in: query
description: return codes that are defaultable at the customer-level
schema:
type: boolean
- name: userDefaultable
required: false
in: query
description: return codes that are defaultable at the user-level
schema:
type: boolean
- name: orderingSequence
required: false
in: query
description: ordering sequence for UI sorting (alphanumeric)
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/CodeType'
tags:
- Code Types
summary: Code type controller find many v1
x-summary-source: derived
/api/v1/code-types/{codeTypeId}:
get:
operationId: CodeTypeController_findOneById_v1
parameters:
- name: codeTypeId
required: true
in: path
description: code type's id
schema:
format: objectid
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/CodeType'
tags:
- Code Types
summary: Code type controller find one by id v1
x-summary-source: derived
/api/v1/customers/{customerId}/code-types/import:
post:
operationId: CustomerCodeTypeController_import_v1
parameters:
- name: customerId
required: true
in: path
description: customer id
schema:
format: objectid
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ImportCustomerCodeTypeDto'
responses:
'201':
description: ''
tags:
- Code Types
summary: Customer code type controller import v1
x-summary-source: derived
/api/v1/customers/{customerId}/code-types:
get:
operationId: CustomerCodeTypeController_findManyForCurrentCustomer_v1
parameters:
- name: customerId
required: true
in: path
description: customer id
schema:
format: objectid
type: string
- name: customerDefaultable
required: false
in: query
description: return codes that are defaultable at the customer-level
schema:
type: boolean
- name: userDefaultable
required: false
in: query
description: return codes that are defaultable at the user-level
schema:
type: boolean
- name: orderingSequence
required: false
in: query
description: ordering sequence for UI sorting (alphanumeric)
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/CodeType'
tags:
- Code Types
summary: Customer code type controller find many for current customer v1
x-summary-source: derived
/api/v1/code-types/{codeTypeId}/default-code:
get:
operationId: DefaultCodeController_findManyByCodeTypeId_v1
parameters:
- name: codeTypeId
required: true
in: path
description: code type's id
schema:
format: objectid
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/DefaultCode'
tags:
- Code Types
summary: Default code controller find many by code type id v1
x-summary-source: derived
post:
operationId: DefaultCodeController_createOne_v1
parameters:
- name: codeTypeId
required: true
in: path
description: code type's id
schema:
format: objectid
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateDefaultCodeDto'
responses:
'201':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultCode'
tags:
- Code Types
summary: Default code controller create one v1
x-summary-source: derived
/api/v1/code-types/{codeTypeId}/default-codes/{codeId}:
delete:
operationId: DefaultCodeController_deleteOne_v1
parameters:
- name: codeTypeId
required: true
in: path
description: code type's id
schema:
format: objectid
type: string
- name: codeId
required: true
in: path
description: id of the "code" that is specified in a DefaultCode
schema:
format: objectid
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultCode'
tags:
- Code Types
summary: Default code controller delete one v1
x-summary-source: derived
/api/v1/customers/{customerId}/code-types/{codeTypeId}/default-code:
get:
operationId: CustomerDefaultCodeController_findManyByCodeTypeId_v1
parameters:
- name: customerId
required: true
in: path
description: customer id
schema:
format: objectid
type: string
- name: codeTypeId
required: true
in: path
description: code type's id
schema:
format: objectid
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/DefaultCode'
tags:
- Code Types
summary: Customer default code controller find many by code type id v1
x-summary-source: derived
post:
operationId: CustomerDefaultCodeController_createOne_v1
parameters:
- name: customerId
required: true
in: path
description: customer id
schema:
format: objectid
type: string
- name: codeTypeId
required: true
in: path
description: code type's id
schema:
format: objectid
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateDefaultCodeDto'
responses:
'201':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultCode'
tags:
- Code Types
summary: Customer default code controller create one v1
x-summary-source: derived
/api/v1/customers/{customerId}/code-types/{codeTypeId}/default-codes/{codeId}:
delete:
operationId: CustomerDefaultCodeController_deleteOne_v1
parameters:
- name: customerId
required: true
in: path
description: customer id
schema:
format: objectid
type: string
- name: codeTypeId
required: true
in: path
description: code type's id
schema:
format: objectid
type: string
- name: codeId
required: true
in: path
description: id of the "code" that is specified in a DefaultCode
schema:
format: objectid
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultCode'
tags:
- Code Types
summary: Customer default code controller delete one v1
x-summary-source: derived
/api/v1/customers/{customerId}/users/{userId}/code-types/{codeTypeId}/default-code:
get:
operationId: CustomerDefaultCodeController_findManyByCodeTypeIdForUser_v1
parameters:
- name: customerId
required: true
in: path
description: customer id
schema:
format: objectid
type: string
- name: userId
required: true
in: path
description: user's id
schema:
format: objectid
type: string
- name: codeTypeId
required: true
in: path
description: code type's id
schema:
format: objectid
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/DefaultCode'
tags:
- Code Types
summary: Customer default code controller find many by code type id for user v1
x-summary-source: derived
post:
operationId: CustomerDefaultCodeController_createOneForUser_v1
parameters:
- name: customerId
required: true
in: path
description: customer id
schema:
format: objectid
type: string
- name: userId
required: true
in: path
description: user's id
schema:
format: objectid
type: string
- name: codeTypeId
required: true
in: path
description: code type's id
schema:
format: objectid
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateDefaultCodeDto'
responses:
'201':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultCode'
tags:
- Code Types
summary: Customer default code controller create one for user v1
x-summary-source: derived
/api/v1/customers/{customerId}/users/{userId}/code-types/{codeTypeId}/default-codes/{codeId}:
delete:
operationId: CustomerDefaultCodeController_deleteOneForUser_v1
parameters:
- name: customerId
required: true
in: path
description: customer id
schema:
format: objectid
type: string
- name: userId
required: true
in: path
description: user's id
schema:
format: objectid
type: string
- name: codeTypeId
required: true
in: path
description: code type's id
schema:
format: objectid
type: string
- name: codeId
required: true
in: path
description: id of the "code" that is specified in a DefaultCode
schema:
format: objectid
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/DefaultCode'
tags:
- Code Types
summary: Customer default code controller delete one for user v1
x-summary-source: derived
components:
schemas:
DefaultCode:
type: object
properties:
_id:
type: string
description: id of default code
format: objectid
customerId:
type: string
description: id of customer who owns this default code configuration
format: objectid
userId:
type: string
description: id of user who owns this default, if only the customer id is set it means its a customer wide default code
format: objectid
codeTypeId:
type: string
description: code type id for the default code
format: objectid
codeId:
type: string
description: code id for the default code
format: objectid
initiativeBillingType:
type: string
description: initiative's billing type
enum:
- billable
- non-billable
schemaVersion:
type: string
description: schema version
createdAt:
type: string
description: date and time this was created
example: '2022-08-12T20:44:48Z'
format: iso-date-time
updatedAt:
type: string
description: date and time this was updated last
example: '2022-08-12T20:44:48Z'
format: iso-date-time
required:
- _id
- customerId
- codeTypeId
- codeId
- schemaVersion
- createdAt
- updatedAt
CodeType:
type: object
properties:
_id:
type: string
description: code type's id
format: objectid
schemaVersion:
type: string
description: code type's schemaVersion
customerId:
type: string
description: id of customer who owns this code type
format: objectid
customerDefaultable:
type:
- boolean
- 'null'
description: can the default CodeType value be set at the customer-level
externalId:
type: string
description: code type's external id
name:
type: string
description: code type's name
semanticType:
type:
- string
- 'null'
description: code type's semantic type
enum:
- action
- activity
- location
- phase
- task
createdAt:
type: string
description: date and time this code type was created
example: '2022-08-12T20:44:48Z'
format: iso-date-time
updatedAt:
type: string
description: date and time this code type was last updated
example: '2022-08-12T20:44:48Z'
format: iso-date-time
userDefaultable:
type:
- boolean
- 'null'
description: can the default CodeType value be set at the user-level
orderingSequence:
type:
- string
- 'null'
description: ordering sequence for UI sorting (alphanumeric)
required:
- _id
- schemaVersion
- customerId
- externalId
- name
- createdAt
- updatedAt
CreateDefaultCodeDto:
type: object
properties:
codeId:
type: string
description: code id for the default code
format: objectid
initiativeBillingType:
type: string
description: optionally provide billable or non-billable
enum:
- billable
- non-billable
required:
- codeId
ImportCustomerCodeTypeDto:
type: object
properties:
externalId:
type: string
description: code type's external id
name:
type: string
description: code type's name
semanticType:
type: string
description: code type's semantic type
enum:
- action
- activity
- location
- phase
- task
customerDefaultable:
type: boolean
description: can the default CodeType value be set at the customer-level
userDefaultable:
type: boolean
description: can the default CodeType value be set at the user-level
orderingSequence:
type: string
description: ordering sequence for UI sorting (alphanumeric)
required:
- externalId
- name
securitySchemes:
ApiBearerAuth:
scheme: bearer
bearerFormat: JWT
description: Enter access token
type: http
externalDocs:
description: Laurel API Documentation
url: https://developer.laurel.ai/