Download OpenAPI specification:
Download Postman Collection: Download
This API uses OAuth 2.0 for authentication and adheres to the SCIM (System for Cross-domain Identity Management) protocol for user management.
This documentation is organized into the following structure:
Authentication: Includes the OAuth request for authentication.
Libraries: Stensul's Libraries endpoint (Not part of the SCIM specification).
Emails: Stensul's Emails endpoint (Not part of the SCIM specification).
SCIM - User Provisioning: SCIM User Resource CRUD endpoints.
SCIM - Group Provisioning: SCIM Group Resource CRUD endpoints.
SCIM - Schemas: SCIM Schemas.
SCIM - Resource Types: SCIM Resource Type list and User/Group type description.
SCIM - Configuration: SCIM Service Provider Configuration endpoint.
SCIM - Bulk Actions: SCIM Bulk Actions
Our API implements rate limiting to ensure fair usage and prevent abuse. Specifically, we limit requests to 30 per second per IP address. This helps us maintain the stability and performance of our API by preventing any single IP address from overwhelming our servers with too many requests. Rate limiting also encourages responsible use of our API and helps protect it from potential malicious attacks.
{baseUrl}
represents the URL of your Stensul instance, for example https://mycompany.stensul.com
Using OAuth 2.0 client credentials grant type request an access token to use the External API. This access token must be passed as a Bearer token.
If you don't request explicit scopes, the default one will be assigned (api-read).
Default token expiration: 6 hours (expressed in seconds)
grant_type required | string |
client_id required | string <uuid> |
client_secret required | string |
scope | Array of strings Items Enum: "api-read" "api-write" |
{- "grant_type": "client_credentials",
- "client_id": "1bdf2ba9-a5fa-42c5-81d3-beae2629e469",
- "client_secret": "aiQldD3IqJ2p9004ba8zNYDyxFxpjqq334fxu8e1",
- "scope": [
- "api-read",
- "api-write"
]
}
{- "token_type": "Bearer",
- "expires_in": 21600,
- "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiI5YmRmMmJhOS1hNWZhLTQyYzUtODFkMy1iZWFlMjYyOWU0NjkiLCJqdGkiOiI5NDBlNGNkMTZhYzU5ZWE0YzBhODA3MWIxMzU4MmRmYjUwY2IwMzA4MzUwMTIzNGVmY2ExNzQ4YjZlN2Y0ODc5OWNjNzczZWViMjU5YTgzNiIsImlhdCI6MTcxNDE0MDUwNi4yODQ2Nzg5LCJuYmYiOjE3MTQxNDA1MDYuMjg0Njg4OSwiZXhwIjoxNzE0MTYyMTA2LjI3MDgzNzEsInN1YiI6IiIsInNjb3BlcyI6WyJhcGktcmVhZCIsImFwaS13cml0ZSJdfQ.tPvGbxd_pWnWpXyOMGNBzn_ufjMROD31u3YTry51jZa31s3uT6ladAxtDvtY1MaqqnHbkV9P1W6krYL-3Q4WZt1Y52jfi_eNMh82Q31RaZSnmtJ_R65mWjcJmxH1hoZkHYT15sBFq-9osPSN2Vh-EqkbYz6tUCqZRPOSz97w5D8fNC2zldrLTu-O-7-qUpdFGccY2BjW8CNAuKK_nCc500wKe6US-HIE_fjSTW0HHZqRp7I4dNWT01kgMX-NJ3DHZP0irAfKWQrU7u5G-V5we7hs8Ke3ZwC0-6QCo9MucZwsICIkFKzj7PFNE2qeJHERZA-nc1-L_cV7_DvameWwIm6NcDgrsNLuXfupQw9riWBZmsv7-9RmgwKZ4r4SRhpSIB35wbAUgV9kX2ZcpX-thfZoATjVMoWUsB-m7YOpYxzpnpQSjk8ZLvK6_NX0dCVywfbbsQlZubQNKNd1wqJRBWS29z-elnu3G58fxVSEdjfbLvVxcrQrYObRNWvhgSKZcL-KgcLOTQnU_XEkNw1FRHi6HvehKLRs56UpL-uZmPkrTWBBJUDZ6gUNZiK372Owa9-p7QH4OJ1IDWuUAq4opPBxLZEMg0Gj04V0dwnIBYHKRcgzRAdsqVfzkYcE8y9DbmyxoPvkCzvK0hj_l9rtBAIczJCkhVvKpibQ3JQf9ow"
}
This endpoint retrieves a list of libraries with the option to sort, filter and paginate the results.
No request body parameters are required for this endpoint.
The response returns a JSON object with the following schema:
{
"data": [
{
"attributes": {
"id": "string",
"name": "string",
"key": "string",
"description": "string",
"permission": "string",
"created_at": "string",
"updated_at": "string",
"created_by": "string",
"updated_by": "string",
"tags": [
"string"
]
}
}
],
"links": {
"first": "string",
"last": "string",
"prev": null,
"next": "string"
},
"meta": {
"current_page": integer,
"from": integer,
"last_page": integer,
"links": [
{
"url": "string",
"label": "string",
"active": boolean
}
],
"path": "string",
"per_page": integer,
"to": integer,
"total": integer
}
}
The response includes an array of library objects with attributes such as ID, name, key, description, permission, creation and update timestamps, as well as creator and updater details. The response also includes links for pagination and meta information about the current page and total count.
filter[name] | string Example: filter[name]=My Library Allow filtering resource results by name. |
sort | string Example: sort=name Allow sorting resource results. Provide a - (minus) before criteria for descending order. Allow comma-separated values. Available values : name, created_at, updated_at |
page[size] | integer Example: page[size]=15 For paginated responses indicates the amount of resource results to be retrieved per page. Maximum resources: 30. Default is 15. |
page[number] | integer Example: page[number]=1 For paginated responses indicates the page number to be retrieved. |
Content-Type | string Example: application/json |
Accept | string Example: application/json |
{- "data": [
- {
- "attributes": {
- "id": "667ad8fee1ddfeb5800a5185",
- "name": "My Library 1",
- "key": "my_library1",
- "description": "My Library 1 Description",
- "permission": "access_library_my_library1",
- "created_at": "2024-06-25T14:49:34.432000Z",
- "updated_at": "2024-06-25T14:49:34.432000Z",
- "created_by": "test@stensul.com",
- "updated_by": "test@stensul.com",
- "tags": [
- "tag1",
- "tag2",
- "tag3"
]
}
}, - {
- "attributes": {
- "id": "667ad922830f9700e2044387",
- "name": "My Library 2",
- "key": "my_library2",
- "description": "My Library 2 Description",
- "permission": "access_library_my_library2",
- "created_at": "2024-06-25T14:50:10.660000Z",
- "updated_at": "2024-06-25T14:50:10.660000Z",
- "created_by": "test@stensul.com",
- "updated_by": "test@stensul.com"
}
}
], - "links": {
- "prev": null,
- "next": null
}, - "meta": {
- "current_page": 1,
- "from": 1,
- "last_page": 1,
- "links": [
- {
- "url": null,
- "label": "« Previous",
- "active": false
}, - {
- "label": "1",
- "active": true
}, - {
- "url": null,
- "label": "Next »",
- "active": false
}
], - "per_page": 15,
- "to": 2,
- "total": 2
}
}
This endpoint retrieves Library information based on the provided Library ID.
No request body parameters are required for this endpoint.
The response returns a JSON object with the following schema:
{
"data": {
"attributes": {
"id": "string",
"name": "string",
"key": "string",
"description": "string",
"permission": "string",
"created_at": "string",
"updated_at": "string",
"created_by": "string",
"updated_by": "string",
"modules": [
{
"moduleId": "string",
"name": "string"
},
],
"tags": [
"string"
],
"config": {
"templateWidth": integer,
"templateMobileWidth": integer,
"templateMobileBreakpoint": integer,
"enableMobile": boolean,
"templateBackgroundColor": "string",
"contentBackgroundColor": "string",
"templateBackgroundPalettes": "string",
"colorPalettes": "string",
"fontFamily": "string",
"fontSize": integer,
"fontColor": "string",
"lineHeight": integer,
"linkColor": "string",
"linkDecoration": "string",
"propietaryCss": "string",
"externalCssLink": "string",
"personalizationTags": [],
"insertBody": boolean,
"prependHtml": "string",
"appendHtml": "string",
"padding": "string",
"isTitleEnabled": boolean,
"titleDefault": "string",
"htmlCustomHead": "string",
"esp": boolean,
"espProvider": [],
"emailTestSending": boolean,
"emailTestSendingIntegrationKey": "string",
"emailTestSendingUseMinifiedOutput": boolean,
"dynamicAuthoring": boolean,
"dynamicAuthoringProvider": "string",
"dynamicAuthoringType": "string",
"languageEnabled": boolean,
"languages": [
"string"
],
"defaultLanguage": "string",
"workflow": boolean,
"workflowProvider": [],
"messaging": boolean,
"messagingProvider": [],
"outputFormats": boolean,
"outputFormatsValues": [
"string"
],
"htmlToPdf": boolean,
"pdfSettings": [],
"htmlToOft": boolean,
"htmlToEmltpl": boolean,
"plainText": boolean,
"maskLink": boolean,
"preheader": boolean,
"preheaderDefault": "string",
"preheaderRequired": boolean,
"preheaderMaxLengthEnabled": boolean,
"preheaderMaxLength": integer,
"isSubjectLineEnabled": boolean,
"subjectLineMaxLengthEnabled": boolean,
"subjectLineMaxLength": integer,
"subjectLineAbTestEnabled": boolean,
"tracking": boolean,
"trackingConfig": "",
"urlTracking": boolean,
"urlTrackingParameters": {
"allowUserToDeactivate": boolean,
"campaign": [],
"element": []
},
"urlTrackingRequired": boolean,
"urlTrackingOption": "string",
"customizationRequestsEnabled": boolean,
"customizationRequestsRecipients": [],
"variations": {
"default": "string",
"mode": "string"
},
"require_approvals": boolean,
"minify_output_by_default": boolean,
"fixedModules": {
"header": {
"moduleId": "string",
"name": "string"
},
"footer": {
"moduleId": "string",
"name": "string."
},
},
"skip_complete_modal": boolean,
"defaultView": "string"
}
}
}
}
libraryId required | string |
Content-Type | string Example: application/json |
Accept | string Example: application/json |
{- "data": {
- "attributes": {
- "id": "672124a1cd2c65d4600fdd94",
- "name": "My Library",
- "key": "my_library",
- "description": "My Library Description",
- "permission": "access_library_my_library",
- "created_at": "2024-10-29T18:08:33.026000Z",
- "updated_at": "2024-12-19T18:27:07.080000Z",
- "created_by": "test@stensul.com",
- "updated_by": "test@stensul.com",
- "modules": [
- {
- "moduleId": "text_module",
- "name": "Text Module"
}, - {
- "moduleId": "image_module",
- "name": "Image Module"
}
], - "tags": [
- "tag1",
- "tag2",
- "tag3"
], - "config": {
- "templateWidth": 640,
- "templateMobileWidth": 480,
- "templateMobileBreakpoint": 480,
- "enableMobile": true,
- "templateBackgroundColor": "#FFFFFF",
- "contentBackgroundColor": "#FFFFFF",
- "templateBackgroundPalettes": "",
- "colorPalettes": "",
- "fontFamily": "Arial",
- "fontSize": 14,
- "fontColor": "#000000",
- "lineHeight": 18,
- "linkColor": "",
- "linkDecoration": "underline",
- "propietaryCss": "",
- "externalCssLink": "",
- "personalizationTags": [ ],
- "insertBody": false,
- "prependHtml": "",
- "appendHtml": "",
- "padding": "",
- "isTitleEnabled": true,
- "titleDefault": "",
- "htmlCustomHead": "",
- "esp": false,
- "espProvider": [ ],
- "emailTestSending": false,
- "emailTestSendingIntegrationKey": "",
- "emailTestSendingUseMinifiedOutput": false,
- "dynamicAuthoring": false,
- "dynamicAuthoringProvider": "",
- "dynamicAuthoringType": "structured",
- "languageEnabled": true,
- "languages": [
- "en-US",
- "es-AR"
], - "defaultLanguage": "en-US",
- "workflow": false,
- "workflowProvider": [ ],
- "messaging": false,
- "messagingProvider": [ ],
- "outputFormats": true,
- "outputFormatsValues": [
- "body_html"
], - "htmlToPdf": false,
- "pdfSettings": [ ],
- "htmlToOft": false,
- "htmlToEmltpl": false,
- "plainText": false,
- "maskLink": false,
- "preheader": true,
- "preheaderDefault": "",
- "preheaderRequired": false,
- "preheaderMaxLengthEnabled": true,
- "preheaderMaxLength": 30,
- "isSubjectLineEnabled": true,
- "subjectLineMaxLengthEnabled": true,
- "subjectLineMaxLength": 30,
- "subjectLineAbTestEnabled": false,
- "tracking": false,
- "trackingConfig": "",
- "urlTracking": false,
- "urlTrackingParameters": {
- "allowUserToDeactivate": false,
- "campaign": [ ],
- "element": [ ]
}, - "urlTrackingRequired": false,
- "urlTrackingOption": "simple_tracking",
- "customizationRequestsEnabled": false,
- "customizationRequestsRecipients": [ ],
- "variations": {
- "default": "62d5b7e00f221675e4456146",
- "mode": "all"
}, - "require_approvals": false,
- "minify_output_by_default": false,
- "fixedModules": {
- "header": {
- "moduleId": "image_module",
- "name": "Image Module"
}, - "footer": {
- "moduleId": "text_module",
- "name": "Text Module."
}
}, - "skip_complete_modal": false,
- "defaultView": "desktop"
}
}
}
}
This endpoint creates an email.
library_key
(text, required) - The library key. Can be obtained with the endpoint /api/v1/libraries
endpoint.
name
(text, required) - The email name.
type
(text, optional) - The type of email, valid values include "draft" and "template". Default: "draft".
title
(text, optional) - The title of the email. If not used, the Library default will be used (if set).
tags
(array, optional) - The email tags. Tags must be available to the Library.
preheader
(text, optional) - The preheader of the email. If not used, the Library default will be used (if set).
subject_line
(text, optional) - The subject line of the email. If not used, the Library default will be used (if set).
language
(text, optional) - The email language. It must be one of the selected values on the library. If not used, the Library default will be used.
The response returns a JSON object with the following schema:
{
"data": {
"id": "string",
"name": "string",
"type": "string",
"tags": array,
"is_archived": boolean,
"has_modules_locked": boolean,
"has_been_uploaded": boolean,
"downloadable_as": array,
"is_exportable_to_esp": boolean,
"is_translatable": boolean,
"has_active_proof": boolean,
"has_autosave_enabled": boolean,
"library_id": "string",
"library_name": "string",
"library_key": "string",
"has_outdated_modules": boolean,
"preview_image_url": "string",
"thumbnail_url": "string",
"preheader": "string",
"subject_line": "string",
"title": "string",
"tracking": {
"param1": "string",
"param2": "string",
},
"personalization_tags": array,
"language": "string",
"has_translation_process_started": null,
"created_at": "string",
"updated_at": "string",
"created_by": {
"id": {
"$oid": "string"
},
"email": "string",
"fullname": "string"
},
"updated_by": {
"id": {
"$oid": "string"
},
"email": "string",
"fullname": "string"
},
"modules_locked_by": null,
"last_proof": {
"id": "string",
"status": "string"
},
"original_language_campaign_id": "string",
"schedule": {
"status": "string",
"date": "string",
"sent_at": "string",
"audiences": [
"string"
],
"is_scheduled": boolean,
"is_sent": boolean,
"created_at": "string",
"updated_at": "string"
},
"outputs": [
{
"format": "string",
"content": "string",
"content_minified": "string"
}
]
}
}
Content-Type | string Example: application/json |
Accept | string Example: application/json |
{- "library_key": "my_library",
- "name": "Test Email",
- "type": "draft",
- "title": "The Email Title",
- "tags": [
- "tag1",
- "tag2",
- "tag3"
], - "preheader": "The Email Preheader",
- "subject_line": "The Subject Line",
- "language": "en-US"
}
{- "data": {
- "id": "6759d8fd233ec9ae2205b8b4",
- "name": "Test Email",
- "type": "draft",
- "tags": [
- "tag1",
- "tag2",
- "tag3"
], - "is_archived": false,
- "has_modules_locked": false,
- "has_been_uploaded": false,
- "downloadable_as": [ ],
- "is_exportable_to_esp": false,
- "is_translatable": true,
- "has_active_proof": false,
- "has_autosave_enabled": true,
- "library_id": "675850cb61771cd6bd084038",
- "library_name": "My Library",
- "library_key": "my_library",
- "has_outdated_modules": false,
- "preview_image_url": null,
- "thumbnail_url": null,
- "preheader": "The Email Preheader",
- "subject_line": "The Subject Line",
- "title": "The Email Title",
- "tracking": null,
- "personalization_tags": [ ],
- "language": "en-US",
- "has_translation_process_started": null,
- "created_at": "2024-12-11T18:25:01.607000Z",
- "updated_at": "2024-12-11T18:25:01.607000Z",
- "created_by": {
- "id": "",
- "email": "system",
- "fullname": "System"
}, - "updated_by": {
- "id": "",
- "email": "system",
- "fullname": "System"
}, - "modules_locked_by": null,
- "original_language_campaign_id": null,
- "schedule": null,
- "outputs": [ ]
}
}
This endpoint retrieves a list of emails with the option to sort, filter and paginate the results.
No request body parameters are required for this endpoint.
The response returns a JSON object with the following schema:
{
"data": [
{
"id": "string",
"name": "string",
"type": "string",
"tags": array,
"is_archived": boolean,
"has_modules_locked": boolean,
"has_been_uploaded": boolean,
"downloadable_as": array,
"is_exportable_to_esp": boolean,
"is_translatable": boolean,
"has_active_proof": boolean,
"has_autosave_enabled": boolean,
"library_id": "string",
"library_name": "string",
"library_key": "string",
"has_outdated_modules": boolean,
"preview_image_url": "string",
"thumbnail_url": "string",
"preheader": "string",
"subject_line": "string",
"title": "string",
"tracking": {
"param1": "string",
"param2": "string",
},
"personalization_tags": array,
"language": "string",
"has_translation_process_started": null,
"created_at": "string",
"updated_at": "string",
"created_by": {
"id": {
"$oid": "string"
},
"email": "string",
"fullname": "string"
},
"updated_by": {
"id": {
"$oid": "string"
},
"email": "string",
"fullname": "string"
},
"modules_locked_by": null,
"last_proof": {
"id": "string",
"status": "string"
},
"original_language_campaign_id": "string",
"schedule": {
"status": "string",
"date": "string",
"sent_at": "string",
"audiences": [
"string"
],
"is_scheduled": boolean,
"is_sent": boolean,
"created_at": "string",
"updated_at": "string"
},
"outputs": [
{
"format": "string",
"content": "string",
"content_minified": "string"
}
]
}
],
"links": {
"first": "string",
"last": "string",
"prev": "string",
"next": "string"
},
"meta": {
"current_page": integer,
"from": integer,
"last_page": integer,
"links": [
{
"url": "string",
"label": "string",
"active": boolean
}
],
"path": "string",
"per_page": integer,
"to": integer,
"total": integer
}
}
The response includes an array of email objects with attributes such as ID, name, library_id, creation and update timestamps, as well as creator and updater details. The response also includes links for pagination and meta information about the current page and total count.
sort | string Example: sort=-created_at Allow sorting resource results. Provide a - (minus) before criteria for descending order. Allow comma-separated values. Available values: name, type, created_at, updated_at |
page[number] | integer Example: page[number]=1 For paginated responses indicates the page number to be retrieved. |
page[size] | integer Example: page[size]=20 For paginated responses indicates the amount of resource results to be retrieved per page. Maximum resources: 30. Default is 15. |
filter[name] | string Allow filtering resource results by name. |
filter[types][] | string Example: filter[types][]=draft Allow filtering resource results by type, available types are "draft", "finished" or "template". This filter can be added more than once to include results with different types.' |
filter[library_keys][] | string Example: filter[library_keys][]=library_1 Allow filtering results by Library Key. This filter can be added more than once to include results with different libraries. |
filter[tags][] | string Example: filter[tags][]=translation,es Allow filtering by tags. This filter can be added more than once to include results with different tags. |
filter[language] | string Example: filter[language]=en-US Allow filtering by language code as defined by ISO 639-1 including additional language tags representing regional subtypes defined in IETF's BCP 47. |
filter[has_modules_locked] | integer Filter emails by whether their modules have been locked or not. Valid values are 0 or 1. By default all emails will be returned. |
filter[has_been_uploaded] | integer Example: filter[has_been_uploaded]=1 Allow filtering for emails uploaded to an ESP. Valid values are 0 or 1. By default all emails will be returned. |
filter[is_archived] | integer Example: filter[is_archived]=1 Allow filtering for archived emails. Valid values are 0 or 1. By default all emails will be returned. |
q | string Example: q=My search terms Allows searching for emails by Email Name, Author, Tags and Library name. |
fields | string Example: fields=name,type,tags,created_by,library_name Specify fields to return in the response, multiple fields can be separated with commas. Every email attribute will be returned if this parameter is not used. Valid fields are: id, name, type, tags, is_archived, has_modules_locked, has_been_uploaded, downloadable_as, is_exportable_to_esp, is_translatable, has_active_proof, has_autosave_enabled, library_id, library_name, library_key, has_outdated_modules, preview_image_url, thumbnail_url, preheader, subject_line, tracking, personalization_tags, language, has_translation_process_started, created_at, updated_at, created_by, updated_by, modules_locked_by, original_language_campaign_id, schedule, outputs. |
Content-Type | string Example: application/json |
Accept | string Example: application/json |
{- "data": [
- {
- "id": "661d84610182f8d9b0060b26",
- "name": "Test Email",
- "type": "finished",
- "tags": [
- "sample tag",
- "test tag"
], - "is_archived": false,
- "has_modules_locked": false,
- "has_been_uploaded": false,
- "downloadable_as": [
- "pdf",
- "oft"
], - "is_exportable_to_esp": true,
- "is_translatable": true,
- "has_active_proof": false,
- "has_autosave_enabled": true,
- "library_id": "6176cd12df3ad162bb6280a3",
- "library_name": "My Library",
- "library_key": "my_library",
- "has_outdated_modules": false,
- "preview_image_url": null,
- "thumbnail_url": null,
- "preheader": "Test Email Preheader",
- "subject_line": "Test Email Subject Line",
- "title": "Test Email Title",
- "tracking": null,
- "personalization_tags": [ ],
- "language": "en",
- "has_translation_process_started": true,
- "created_at": "2024-04-15T19:47:45.253000Z",
- "updated_at": "2024-08-14T20:06:51.006000Z",
- "created_by": {
- "id": {
- "$oid": "6176cab757475472c31392a2"
}, - "email": "test@stensul.com",
- "fullname": "John Smith"
}, - "updated_by": {
- "id": {
- "$oid": "6176cab757475472c31392a2"
}, - "email": "test@stensul.com",
- "fullname": "John Smith"
}, - "modules_locked_by": null,
- "last_proof": {
- "id": "66bd0d73e55dc4b0e10e296a",
- "status": "COMPLETED"
}, - "original_language_campaign_id": null,
- "schedule": {
- "status": "scheduled",
- "date": "2024-08-16T03:00:00.000000Z",
- "sent_at": "",
- "audiences": [
- "Active"
], - "is_scheduled": true,
- "is_sent": false,
- "created_at": "2024-08-14T19:46:08.129000Z",
- "updated_at": "2024-08-14T19:46:13.712000Z"
}, - "outputs": [
- {
- "format": "json_translation",
- "content": "{\n \"id-661d84610182f8d9b0060b26\": {\n \"message\": \"\"\n },\n \"preheader\": {\n \"message\": \"<p style=\\\"margin: 0px;\\\">Test Email Preheader</p>\"\n },\n \"subject\": {\n \"message\": \"<p style=\\\"margin: 0px;\\\">Test Email Subject Line</p>\"\n },\n \"title\": {\n \"message\": \"Test Email Title\"\n },\n \"3235089836-6176cd33034193389d38fd62-222039-913453-699684\": {\n \"message\": \"<p style=\\\"margin: 0px;\\\"><span style=\\\"font-size: 14px; line-height: 20px;\\\" data-mce-style=\\\"font-size: 14px; line-height: 20px;\\\">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.</span></p>\"\n },\n \"1145984920-6176ce7c27bcea576e0455f3-173280-146989-399814\": {\n \"message\": \"<p style=\\\"margin: 0px;\\\"><span style=\\\"font-size: 12px; line-height: 15px;\\\">Lorem Ipsum</span></p>\"\n }\n}",
- "content_minified": null
}, - {
- "format": "body_html",
- "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" \nxmlns:v=\"urn:schemas-microsoft-com:vml\" \nxmlns:o=\"urn:schemas-microsoft-com:office:office\" \n\tlang=\"en\" xml:lang=\"en\">\n\t<head>\n\t\t<!--[if gte mso 9]><xml>\n\t\t\t<o:OfficeDocumentSettings>\n\t\t\t<o:AllowPNG/>\n\t\t\t<o:PixelsPerInch>96</o:PixelsPerInch>\n\t\t\t</o:OfficeDocumentSettings>\n\t\t\t</xml>\n\t\t<![endif]-->\n\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n\t\t<meta name=\"HandheldFriendly\" content=\"true\"/>\n\t\t<meta name=\"MobileOptimized\" content=\"320\"/>\n\t\t<meta name=\"viewport\" content=\"width=device-width\" />\n\n\t\t\t\t\t\t\t\n\t\t\t\t<title>Test Email Title</title>\n \n\t\t\n\t\t<style type=\"text/css\">\n \n span, td, table, div {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .st-email-body{\n width:100% !important;\n -webkit-text-size-adjust: 100%;\n margin: 0 auto!important;\n padding: 0px;\n background-color: #ffffff;\n }\n\n span.st-preheader{\n display: none!important;\n }\n\n \n td img + div {\n display: none;\n }\n\n \n a[href^=\"tel\"],\n a[href^=\"sms\"]{text-decoration: none; color: inherit !important; pointer-events: none; cursor: default;}\n u + .st-email-body a {color: inherit; text-decoration: none; font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit;}\n \n *[x-apple-data-detectors] {color: inherit !important; text-decoration: none !important; font-size: inherit !important; font-family: inherit !important; font-weight: inherit !important; line-height: inherit !important;}\n\n a,a:hover,a:link,a:visited {\n text-decoration:none !important;\n outline: none;\n }\n\n p {\n margin: 0;\n padding: 0;\n }\n\n \n .st-hide-desktop {\n display:none;\n font-size:0;\n height:0;\n min-height:0;\n max-height:0;\n line-height:0;\n mso-hide:all;\n }\n\n .st-gmail-fix { display: none !important; }\n\n </style>\n<style>\n\n@media screen and (max-width: 360px) {\n \n .st-col,.st-mobile-full-width,.st-module-wrapper-table,.st-wrapper,.st-wrapper-table{width:100%!important}.st-col{padding:0!important}.st-resize{width:100%!important}.st-mobile-width-constraint,.st-resize{display:block!important;height:auto!important}.st-mobile-width-constraint{max-width:100%!important}.st-equal-height,.st-height-auto{height:auto!important}.st-hide-desktop{display:table-row!important}.st-hide-mobile{display:none!important}.st-mobile-inline{display:inline!important}.show-img-mobile{display:table-row!important;width:100%!important;float:none;overflow:visible!important;height:auto!important}\n .st-dynamic-500-7 { background-image:none!important; } \n .st-wrapper-table{\n width: 100%!important;\n max-width: 360px!important;\n margin: 0 auto;\n }\n }\n #MessageViewBody .st-module-wrapper-table {margin-top:-1px}\n @media (max-width:599px) and (min-width:361px) {.st-module-wrapper-table {margin-top:-1px !important;} }\n div > u + .body .st-module-wrapper-table {margin-top:0px !important}\n </style>\n<!--[if !mso]><!-->\n <style>\n ul, ol {margin-left:15px; padding-left:0px}\n </style>\n<!--<![endif]-->\n<!--[if mso]>\n <style>\n table{\n border-collapse: collapse;\n }\n\n span.MsoHyperlink {\n mso-style-priority:99;\n color:inherit;\n }\n span.MsoHyperlinkFollowed {\n mso-style-priority:99;\n color:inherit;\n }\n ol li, ul li {margin-top:0px !important;margin-bottom:0px !important;}\n </style>\n<![endif]-->\n\n<!--[if gte mso 9]>\n <style>\n .st-mso-full-width{\n width: 100%;\n }\n </style>\n<![endif]-->\n\n\n<!--[if IEMobile]>\n <style type=\"text/css\">\n .st-mso-full-width{\n width: 100%;\n }\n </style>\n<![endif]-->\n\n\n \n\n\n\t</head>\n\t<body class=\"st-email-body st-center-gmail\">\n\t\t\t\t\t\t\t<div lang=\"en\">\n\t\t\n\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t<div style=\"font-size:0px; display:none; visibility:hidden; opacity:0; color:transparent; max-height:0px; height:0; width:0; mso-hide:all;\">\n\t\t\t\t\t\tTest Email Preheader\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<table role=\"presentation\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#FFFFFF\" class=\"st-wrapper-table\" style=\"width: 100%;\">\n <tr>\n <td width=\"100%\" valign=\"top\" align=\"center\" class=\"st-dynamic-500-7\">\n <table role=\"presentation\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"600\" class=\"st-wrapper st-wrapper-background st-module-wrapper-table\" style=\"width: 600px;\">\n <tr>\n <td width=\"100%\" valign=\"top\" style=\"width: 100%;\">\n <table role=\"presentation\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"600\" class=\"st-mso-full-width st-mobile-full-width\" style=\"width: 600px;\">\n <tr>\n <td align=\"center\" valign=\"top\" width=\"600\">\n <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\">\n <tr>\n <td width=\"100%\" valign=\"top\" align=\"left\" style=\"text-align: left; font-family: Helvetica, Arial, sans-serif; color: #000000; font-size: 14px; font-weight: normal; letter-spacing: normal; line-height: 20px; width: 100%;\">\n <p style=\"margin: 0px;\"><span style=\"font-size: 14px; line-height: 20px;\">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.</span></p>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td width=\"100%\" valign=\"top\" align=\"center\" class=\"st-dynamic-500-7\">\n <table role=\"presentation\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"600\" class=\"st-wrapper st-wrapper-background st-module-wrapper-table\" style=\"width: 600px;\">\n <tr>\n <td width=\"100%\" valign=\"top\" style=\"width: 100%;\">\n <table role=\"presentation\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"600\" class=\"st-mso-full-width st-mobile-full-width\" style=\"width: 600px;\">\n <tr>\n <td align=\"center\" valign=\"top\" width=\"600\">\n <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\">\n <tr>\n <td width=\"100%\" valign=\"top\" align=\"center\" style=\"width: 100%;\">\n <table role=\"presentation\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse: initial;\">\n <tr>\n <td width=\"100%\" bgcolor=\"#514960\" align=\"center\" height=\"40\" valign=\"middle\" style=\"mso-padding-alt:0px 10px 0px 10px; height:40px; width: 100%; text-align: center; background-color: #514960; vertical-align: middle\"> <a href=\"https://stensul.com\" target=\"_blank\" title=\"\" bgcolor=\"#514960\" valign=\"middle\" style=\"mso-line-height-rule:exactly; text-align:center; font-family: Helvetica, Arial, sans-serif; color: #ffffff; font-size: 12px; font-weight: normal; letter-spacing: normal; line-height: 15px; padding-right: 10px; padding-left: 10px; text-decoration: none; display: table-cell; height: 40px; border-radius: 0px; vertical-align: middle; box-sizing: content-box\"> <span style=\"margin: 0px; color: #ffffff;\"><span style=\"font-size: 12px; line-height: 15px;\">Lorem Ipsum</span></span></a> </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr><!--[if false]><!-->\n <tr>\n <td class=\"st-gmail-fix\" style=\"font-size:0; line-height: 0; height: 0; min-width: 600px;\">\n \n </td>\n </tr><!--<![endif]-->\n</table>\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t</body>\n</html>\n",
- "content_minified": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\" xml:lang=\"en\" lang=\"en\" lang=\"en\"><head> <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:AllowPNG/> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml> <![endif]--> <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\"><meta content=\"true\" name=\"HandheldFriendly\"><meta content=\"320\" name=\"MobileOptimized\"><meta content=\"width=device-width\" name=\"viewport\"><title>Test Email Title</title><style type=\"text/css\">span,td,table,div{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.st-email-body{width:100% !important;-webkit-text-size-adjust:100%;margin:0 auto!important;padding:0;background-color:#fff}span.st-preheader{display:none!important}td img+div{display:none}a[href^=tel],a[href^=sms]{text-decoration:none;color:inherit !important;pointer-events:none;cursor:default}u+.st-email-body a{color:inherit;text-decoration:none;font-size:inherit;font-family:inherit;font-weight:inherit;line-height:inherit}*[x-apple-data-detectors]{color:inherit !important;text-decoration:none !important;font-size:inherit !important;font-family:inherit !important;font-weight:inherit !important;line-height:inherit !important}a,a:hover,a:link,a:visited{text-decoration:none !important;outline:none}p{margin:0;padding:0}.st-hide-desktop{display:none;font-size:0;height:0;min-height:0;max-height:0;line-height:0;mso-hide:all}.st-gmail-fix{display:none !important}</style><style>@media screen and (max-width:360px){.st-col,.st-mobile-full-width,.st-module-wrapper-table,.st-wrapper,.st-wrapper-table{width:100%!important}.st-col{padding:0!important}.st-resize{width:100%!important}.st-mobile-width-constraint,.st-resize{display:block!important;height:auto!important}.st-mobile-width-constraint{max-width:100%!important}.st-equal-height,.st-height-auto{height:auto!important}.st-hide-desktop{display:table-row!important}.st-hide-mobile{display:none!important}.st-mobile-inline{display:inline!important}.show-img-mobile{display:table-row!important;width:100%!important;float:none;overflow:visible!important;height:auto!important}.st-dynamic-500-7{background-image:none!important}.st-wrapper-table{width:100%!important;max-width:360px!important;margin:0 auto}}#MessageViewBody .st-module-wrapper-table{margin-top:-1px}@media (max-width:599px) and (min-width:361px){.st-module-wrapper-table{margin-top:-1px !important}}div>u+.body .st-module-wrapper-table{margin-top:0 !important}</style> <!--[if !mso]><!--> <style>ul,ol{margin-left:15px;padding-left:0}</style> <!--<![endif]--> <!--[if mso]> <style> table{ border-collapse: collapse; } span.MsoHyperlink { mso-style-priority:99; color:inherit; } span.MsoHyperlinkFollowed { mso-style-priority:99; color:inherit; } ol li, ul li {margin-top:0px !important;margin-bottom:0px !important;} </style><![endif]--> <!--[if gte mso 9]> <style> .st-mso-full-width{ width: 100%; } </style><![endif]--> <!--[if IEMobile]> <style type=\"text/css\"> .st-mso-full-width{ width: 100%; } </style><![endif]--> </head> <body class=\"st-center-gmail st-email-body\"><div lang=\"en\"><div style=\"font-size:0px;display:none;visibility:hidden;opacity:0;color:transparent;max-height:0px;height:0;width:0;mso-hide:all\"> Test Email Preheader  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ </div> <table bgcolor=\"#FFFFFF\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"st-wrapper-table\" role=\"presentation\" style=\"width:100%\" width=\"100%\"><tr><td align=\"center\" class=\"st-dynamic-500-7\" valign=\"top\" width=\"100%\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"st-module-wrapper-table st-wrapper st-wrapper-background\" role=\"presentation\" style=\"width:600px\" width=\"600\"><tr><td style=\"width:100%\" valign=\"top\" width=\"100%\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"st-mobile-full-width st-mso-full-width\" role=\"presentation\" style=\"width:600px\" width=\"600\"><tr><td align=\"center\" valign=\"top\" width=\"600\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\"><tr><td align=\"left\" style=\"text-align:left;font-family:Helvetica,Arial,sans-serif;color:#000;font-size:14px;font-weight:400;letter-spacing:normal;line-height:20px;width:100%\" valign=\"top\" width=\"100%\"><p style=\"margin:0\"><span style=\"font-size:14px;line-height:20px\">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.</span></p></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td align=\"center\" class=\"st-dynamic-500-7\" valign=\"top\" width=\"100%\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"st-module-wrapper-table st-wrapper st-wrapper-background\" role=\"presentation\" style=\"width:600px\" width=\"600\"><tr><td style=\"width:100%\" valign=\"top\" width=\"100%\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"st-mobile-full-width st-mso-full-width\" role=\"presentation\" style=\"width:600px\" width=\"600\"><tr><td align=\"center\" valign=\"top\" width=\"600\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\"><tr><td align=\"center\" style=\"width:100%\" valign=\"top\" width=\"100%\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" style=\"border-collapse:initial\"><tr><td width=\"100%\" bgcolor=\"#514960\" align=\"center\" height=\"40\" valign=\"middle\" style=\"mso-padding-alt:0px 10px 0px 10px; height:40px; width: 100%; text-align: center; background-color: #514960; vertical-align: middle\"> <a href=\"https://stensul.com\" target=\"_blank\" title=\"\" bgcolor=\"#514960\" valign=\"middle\" style=\"mso-line-height-rule:exactly; text-align:center; font-family: Helvetica, Arial, sans-serif; color: #ffffff; font-size: 12px; font-weight: normal; letter-spacing: normal; line-height: 15px; padding-right: 10px; padding-left: 10px; text-decoration: none; display: table-cell; height: 40px; border-radius: 0px; vertical-align: middle; box-sizing: content-box\"> <span style=\"margin: 0px; color: #ffffff;\"><span style=\"font-size: 12px; line-height: 15px;\">Lorem Ipsum</span></span></a></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr><!--[if false]><!--> <tr><td class=\"st-gmail-fix\" style=\"font-size:0;line-height:0;height:0;min-width:600px\"> </td></tr><!--<![endif]--> </table></div> </body></html>"
}, - {
- "format": "json",
- "content": "{\n \"modules\": [\n {\n \"name\": \"Text\",\n \"id\": \"6176cd33034193389d38fd62\",\n \"styles\": {\n \"backgroundImage\": \"\",\n \"backgroundRepeat\": \"no-repeat\",\n \"backgroundPlacement\": \"inside\",\n \"backgroundPositionX\": \"left\",\n \"backgroundPositionY\": \"top\",\n \"backgroundSize\": \"cover\",\n \"paddingTop\": \"0px\",\n \"paddingRight\": \"0px\",\n \"paddingBottom\": \"0px\",\n \"paddingLeft\": \"0px\",\n \"borderRadius\": \"0px\",\n \"borderTopWidth\": \"0px\",\n \"borderRightWidth\": \"0px\",\n \"borderBottomWidth\": \"0px\",\n \"borderLeftWidth\": \"0px\"\n },\n \"stylesMobile\": [],\n \"attributes\": [],\n \"prependCode\": \"\",\n \"appendCode\": \"\",\n \"rows\": [\n {\n \"attributes\": {\n \"width\": \"100%\"\n },\n \"styles\": [],\n \"columns\": [\n {\n \"attributes\": {\n \"width\": \"100%\"\n },\n \"styles\": [],\n \"elements\": [\n {\n \"type\": \"text\",\n \"classes\": null,\n \"content\": {\n \"html\": \"<p style=\\\"margin: 0px;\\\"><span style=\\\"font-size: 14px; line-height: 20px;\\\" data-mce-style=\\\"font-size: 14px; line-height: 20px;\\\">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.</span></p>\",\n \"text\": \"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.\"\n },\n \"styles\": {\n \"fontFamily\": \"Helvetica, Arial, Sans-serif\",\n \"fontSize\": \"14px\",\n \"color\": \"#000000\",\n \"fontWeight\": \"normal\",\n \"letterSpacing\": \"normal\",\n \"lineHeight\": \"40%\",\n \"align\": \"left\",\n \"paddingTop\": \"0px\",\n \"paddingRight\": \"0px\",\n \"paddingBottom\": \"0px\",\n \"paddingLeft\": \"0px\"\n },\n \"attributes\": [],\n \"links\": [],\n \"bgcolor\": \"\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"name\": \"Button\",\n \"id\": \"6176ce7c27bcea576e0455f3\",\n \"styles\": {\n \"backgroundImage\": \"\",\n \"backgroundRepeat\": \"no-repeat\",\n \"backgroundPlacement\": \"inside\",\n \"backgroundPositionX\": \"left\",\n \"backgroundPositionY\": \"top\",\n \"backgroundSize\": \"cover\",\n \"paddingTop\": \"0px\",\n \"paddingRight\": \"0px\",\n \"paddingBottom\": \"0px\",\n \"paddingLeft\": \"0px\",\n \"borderRadius\": \"0px\",\n \"borderTopWidth\": \"0px\",\n \"borderRightWidth\": \"0px\",\n \"borderBottomWidth\": \"0px\",\n \"borderLeftWidth\": \"0px\"\n },\n \"stylesMobile\": [],\n \"attributes\": [],\n \"prependCode\": \"\",\n \"appendCode\": \"\",\n \"rows\": [\n {\n \"attributes\": {\n \"width\": \"100%\"\n },\n \"styles\": [],\n \"columns\": [\n {\n \"attributes\": {\n \"width\": \"100%\"\n },\n \"styles\": [],\n \"elements\": [\n {\n \"type\": \"button\",\n \"classes\": null,\n \"content\": {\n \"html\": \"<p style=\\\"margin: 0px;\\\"><span style=\\\"font-size: 12px; line-height: 15px;\\\">Lorem Ipsum</span></p>\",\n \"text\": \"Lorem Ipsum\"\n },\n \"styles\": {\n \"color\": \"#FFFFFF\",\n \"fontFamily\": \"Helvetica, Arial, Sans-serif\",\n \"fontSize\": \"12px\",\n \"lineHeight\": \"20%\",\n \"textAlign\": \"center\",\n \"fontWeight\": \"normal\",\n \"letterSpacing\": \"normal\",\n \"paddingRight\": \"10px\",\n \"paddingLeft\": \"10px\",\n \"minWidth\": 50,\n \"maxWidth\": 400,\n \"paddingTop\": \"0px\",\n \"paddingBottom\": \"0px\",\n \"borderRadius\": \"0px\",\n \"borderTopWidth\": \"0px\",\n \"borderRightWidth\": \"0px\",\n \"borderBottomWidth\": \"0px\",\n \"borderLeftWidth\": \"0px\"\n },\n \"attributes\": {\n \"width\": \"150\",\n \"height\": 40,\n \"align\": \"center\",\n \"bgcolor\": \"#514960\",\n \"href\": \"https://stensul.com\",\n \"title\": \"\",\n \"valign\": \"middle\",\n \"hrefExists\": true,\n \"trackingParameters\": {\n \"new-element0\": \"default-value\",\n \"RILC\": \"\",\n \"RILT\": \"Responsys Link Title\"\n }\n },\n \"bgcolor\": \"\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}",
- "content_minified": null
}, - {
- "format": "plain_text",
- "content": "Test Email Preheader ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏\n ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏\n ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏\n ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏\n ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏\n ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏\n ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏\n ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏\n ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏\n ͏ \n \n \n \n Lorem ipsum dolor sit amet, consetetur sadipscing\nelitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At\nvero eos et accusam et justo duo dolores et ea rebum.\n\nLorem Ipsum https://stensul.com",
- "content_minified": null
}
]
}
], - "links": {
- "prev": null,
}, - "meta": {
- "current_page": 1,
- "from": 1,
- "last_page": 25,
- "links": [
- {
- "url": null,
- "label": "« Previous",
- "active": false
}, - {
- "label": "1",
- "active": true
}, - {
- "label": "2",
- "active": false
}, - {
- "label": "3",
- "active": false
}, - {
- "label": "4",
- "active": false
}, - {
- "label": "5",
- "active": false
}, - {
- "label": "6",
- "active": false
}, - {
- "label": "7",
- "active": false
}, - {
- "label": "8",
- "active": false
}, - {
- "label": "9",
- "active": false
}, - {
- "label": "10",
- "active": false
}, - {
- "url": null,
- "label": "...",
- "active": false
}, - {
- "label": "24",
- "active": false
}, - {
- "label": "25",
- "active": false
}, - {
- "label": "Next »",
- "active": false
}
], - "per_page": 1,
- "to": 1,
- "total": 25
}
}
This endpoint retrieves email information based on the provided email ID.
No request body parameters are required for this endpoint.
The response returns a JSON object with the following schema:
{
"data": {
"id": "string",
"name": "string",
"type": "string",
"tags": array,
"is_archived": boolean,
"has_modules_locked": boolean,
"has_been_uploaded": boolean,
"downloadable_as": array,
"is_exportable_to_esp": boolean,
"is_translatable": boolean,
"has_active_proof": boolean,
"has_autosave_enabled": boolean,
"library_id": "string",
"library_name": "string",
"library_key": "string",
"has_outdated_modules": boolean,
"preview_image_url": "string",
"thumbnail_url": "string",
"preheader": "string",
"subject_line": "string",
"title": "string"
"tracking": {
"param1": "string",
"param2": "string",
},
"personalization_tags": array,
"language": "string",
"has_translation_process_started": null,
"created_at": "string",
"updated_at": "string",
"created_by": {
"id": {
"$oid": "string"
},
"email": "string",
"fullname": "string"
},
"updated_by": {
"id": {
"$oid": "string"
},
"email": "string",
"fullname": "string"
},
"modules_locked_by": null,
"last_proof": {
"id": "string",
"status": "string"
},
"original_language_campaign_id": "string",
"schedule": {
"status": "string",
"date": "string",
"sent_at": "string",
"audiences": [
"string"
],
"is_scheduled": boolean,
"is_sent": boolean,
"created_at": "string",
"updated_at": "string"
},
"outputs": [
{
"format": "string",
"content": "string",
"content_minified": "string"
}
]
}
}
emailId required | string |
Content-Type | string Example: application/json |
Accept | string Example: application/json |
{- "data": {
- "id": "62d7122ccd183934f3089258",
- "name": "Test Email",
- "type": "template",
- "tags": [
- "my_tag"
], - "is_archived": false,
- "has_modules_locked": false,
- "has_been_uploaded": false,
- "downloadable_as": [
- "pdf",
- "oft",
- "emltpl"
], - "is_exportable_to_esp": true,
- "is_translatable": true,
- "has_active_proof": false,
- "has_autosave_enabled": true,
- "library_id": "6176cd12df3ad162bb6280a3",
- "library_name": "Test Library",
- "library_key": "test_library",
- "has_outdated_modules": false,
- "preview_image_url": null,
- "thumbnail_url": null,
- "preheader": "Preheader text",
- "subject_line": "My Subject Line",
- "title": "My Email Title",
- "tracking": {
- "new-parameter0": "track",
- "new-parameter1": "",
- "new-parameter2": ""
}, - "personalization_tags": [ ],
- "language": "en",
- "has_translation_process_started": true,
- "created_at": "2022-07-19T20:21:00.635000Z",
- "updated_at": "2022-07-19T20:26:00.961000Z",
- "created_by": {
- "id": {
- "$oid": "6176cab757475472c31392a2"
}, - "email": "test@stensul.com",
- "fullname": "Test User"
}, - "updated_by": {
- "id": {
- "$oid": "6176cab757475472c31392a2"
}, - "email": "test@stensul.com",
- "fullname": "Test User"
}, - "modules_locked_by": null,
- "original_language_campaign_id": null,
- "schedule": null,
- "outputs": [
- {
- "format": "json_translation",
- "content": "{\n \"id\": {\n \"message\": \"62d7122ccd183934f3089258\"\n },\n \"name\": {\n \"message\": \"Test Email\"\n },\n \"preheader\": {\n \"message\": \"Preheader text\"\n },\n \"subject\": {\n \"message\": \"My Subject Line\"\n },\n \"title\": {\n \"message\": \"the title\"\n },\n \"6176cd33034193389d38fd62-222039-913453-699684\": {\n \"message\": \"<p style=\\\"margin: 0px;\\\"><span style=\\\"font-size: 12px; line-height: 15px;\\\">This is a test email. <a style=\\\"color: #000000;\\\" href=\\\"https://stensul.com\\\" data-tracking=\\\"{"new-element0":""}\\\"><span style=\\\"color: #0000ee;\\\">Stensul</span></a>\"\n },\n \"6176ce7c27bcea576e0455f3-173280-146989-399814-title\": {\n \"message\": \"button module title\"\n },\n \"62bf43d4dc697b285547490f-320987-774066-352841-prepend\": {\n \"message\": \"<p>prepend code to the module</p>\"\n },\n \"62bf43d4dc697b285547490f-320987-774066-352841-append\": {\n \"message\": \"<p>append code to the module</p>\"\n },\n \"6176cd68f76121201f19c242-518047-746736-227848-alt\": {\n \"message\": \"image 1 alt text\"\n },\n \"62bf42b0e7700c2083505e35-404513-751641-725607-custom-code\": {\n \"message\": \"<strong style=\\\"font-size: 14px; font-family:Arial, sans-serif;\\\">This is your custom code</strong>\"\n },\n \"62bf447d96f14503431831fd-379422-909871-975035\": {\n \"message\": \"<p style=\\\"margin: 0px;\\\">Test Email\"\n },\n \"62bf447d96f14503431831fd-379422-909871-399936-alt\": {\n \"message\": \"second image alt text\"\n }\n}",
- "content_minified": null
}
]
}
}
This endpoint retrieves user information based on the provided user ID.
No request body parameters are required for this endpoint.
The response returns a JSON object with the following schema:
{
"id": "string",
"externalId": "string",
"meta": {
"created": "string",
"lastModified": "string",
"location": "string",
"resourceType": "string"
},
"urn:ietf:params:scim:schemas:core:2.0:User": {
"userName": "string",
"name": {
"formatted": "string",
"familyName": "string",
"givenName": "string"
},
"active": true,
"groups": [
{
"value": "string",
"$ref": "string",
"display": "string"
}
],
"entitlements": [
{
"value": "string",
"display": "string"
}
]
},
"schemas": [
"string"
]
}
userId required | string |
Content-Type | string Example: application/scim+json |
{- "id": "6669edf917fbcd961603a498",
- "externalId": "some-unique-id",
- "meta": {
- "created": "2024-06-12T14:50:33-04:00",
- "lastModified": "2024-06-12T14:50:33-04:00",
- "resourceType": "User"
}, - "urn:ietf:params:scim:schemas:core:2.0:User": {
- "userName": "example@stensul.com",
- "name": {
- "formatted": "John Doe",
- "familyName": "Doe",
- "givenName": "John"
}, - "active": true,
- "groups": [
- {
- "value": "6176ca93290d332c4c35f671",
- "display": "admin"
}, - {
- "value": "6176ca93290d332c4c35f66f",
- "display": "full"
}
], - "entitlements": [
- {
- "value": "access_library_my_library1",
- "display": "My Library 1"
}
]
}, - "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
]
}
This endpoint allows you to update the details of a user.
For security reasons password cannot be set via API.
schemas
(array, required): An array of schema URLs.
userName
(string, required): The username of the user.
name
(object, required): The name of the user, including given name and family name.
givenName
(string, required): The given name of the user.
familyName
(string, required): The family name of the user.
externalId
(string): The external ID of the user.
active
(boolean): Indicates whether the user is active.
groups
(array, required): An array of groups that the user belongs to.
value
(string, required): The id of the group.entitlements
(array, required): An array of library permissions the user has access to.
value
(string, required): The name of the permission.The response is a JSON object conforming to the following schema:
{
"id": "string",
"externalId": "string",
"meta": {
"created": "string",
"lastModified": "string",
"location": "string",
"resourceType": "string"
},
"urn:ietf:params:scim:schemas:core:2.0:User": {
"userName": "string",
"name": {
"formatted": "string",
"familyName": "string",
"givenName": "string"
},
"active": true,
"groups": [
{
"value": "string",
"$ref": "string",
"display": "string"
}
],
"entitlements": [
{
"value": "string",
"display": "string"
}
],
},
"schemas": ["string"]
}
userId required | string |
Content-Type | string Example: application/scim+json |
schemas | Array of any Default: ["urn:ietf:params:scim:schemas:core:2.0:User"] Items Value: "urn:ietf:params:scim:schemas:core:2.0:User" |
userName | string <email> |
object | |
externalId | string |
active | boolean |
Array of objects | |
Array of objects |
{- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
], - "userName": "example@stensul.com",
- "name": {
- "givenName": "John",
- "familyName": "Doe"
}, - "externalId": "some-unique-id",
- "active": true,
- "groups": [
- {
- "value": "{groupId}"
}
], - "entitlements": [
- {
- "value": "access_library_my_library1"
}, - {
- "value": "access_library_my_library2"
}
]
}
{- "id": "663a829c778347154f045a7c",
- "externalId": "some-unique-id",
- "meta": {
- "created": "2024-05-07T15:35:56-04:00",
- "lastModified": "2024-06-12T16:20:39-04:00",
- "resourceType": "User"
}, - "urn:ietf:params:scim:schemas:core:2.0:User": {
- "userName": "alice@stensul.com",
- "name": {
- "formatted": "Alice Smith",
- "familyName": "Smith",
- "givenName": "Alice"
}, - "active": true,
- "groups": [
- {
- "value": "6176ca93290d332c4c35f66f",
- "display": "full"
}
], - "entitlements": [
- {
- "value": "access_library_my_library_1",
- "display": "My Library 1"
}, - {
- "value": "access_library_my_library_2",
- "display": "My Library 2"
}
]
}, - "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
]
}
This endpoint is used to delete a specific user by their ID.
Method: DELETE
Endpoint: {baseUrl}/scim/v2/Users/{userId}
The response for this request is in JSON format and includes the following schema:
{
"type": "object",
"properties": {
"schemas": {
"type": "array"
},
"detail": {
"type": "string"
},
"status": {
"type": "integer"
}
}
}
The response will have a status code of 404 if the user with the specified ID is not found.
userId required | string |
Content-Type | string Example: application/scim+json |
{- "schemas": [
- "urn:ietf:params:scim:api:messages:2.0:Error"
], - "detail": "Resource \"6669edf917fbcd961603a392\" not found",
- "status": 404
}
This endpoint is used to update a specific user's information using the SCIM (System for Cross-domain Identity Management) protocol.
schemas
(array of strings, required): An array of URNs that indicate the schema used for the request.
Operations
(array of objects, required): An array of operations to be performed on the user's information.
op
(string, required): The operation to be performed, e.g., "replace", "add" or "remove".
value
(object, required): The updated value for the specified attribute.
active
(boolean): Indicates whether the user is active or not.
userName
(string): The username of the user.
externalId
(string): The unique identifier for the user outside Stensul.
groups
(array of objects): An array of groups to which the user belongs.
value
(string, required): The unique identifier of the group.entitlements
(array, required): An array of library permissions the user has access to.
value
(string, required): The name of the permission.path
(string, required if "op" is "add" or "remove"): The path of the attribute to be updated, e.g., "name.givenName".
value
(string, required): The updated value for the specified attribute.
The response of this request will conform to a JSON schema that represents the updated user information.
{
"id": "string",
"externalId": "string",
"meta": {
"created": "string",
"lastModified": "string",
"location": "string",
"resourceType": "string"
},
"urn:ietf:params:scim:schemas:core:2.0:User": {
"userName": "string",
"name": {
"formatted": "string",
"familyName": "string",
"givenName": "string"
},
"active": true,
"groups": [
{
"value": "string",
"$ref": "string",
"display": "string"
}
],
"entitlements": [
{
"value": "string",
"display": "string"
}
]
},
"schemas": [
"string"
]
}
userId required | string |
Content-Type | string Example: application/scim+json |
{- "schemas": [
- "urn:ietf:params:scim:api:messages:2.0:PatchOp"
], - "Operations": [
- {
- "op": "replace",
- "value": {
- "active": true,
- "userName": "example@stensul.com",
- "externalId": "some-unique-id",
- "groups": [
- {
- "value": "{groupId}"
}
], - "entitlements": [
- {
- "value": "access_library_my_library1"
}
]
}
}, - {
- "op": "add",
- "path": "groups",
- "value": {
- "groups": [
- {
- "value": "6176ca93290d332c4c35f671"
}
]
}
}, - {
- "op": "add",
- "path": "entitlements",
- "value": {
- "entitlements": [
- {
- "value": "access_library_my_library2"
}
]
}
}
]
}
{- "id": "666b1fe217fbcd961603a49c",
- "externalId": "some-unique-id",
- "meta": {
- "created": "2024-06-13T12:35:46-04:00",
- "lastModified": "2024-06-25T10:51:52-04:00",
- "resourceType": "User"
}, - "urn:ietf:params:scim:schemas:core:2.0:User": {
- "userName": "example@stensul.com",
- "name": {
- "formatted": "John Doe",
- "familyName": "Doe",
- "givenName": "John"
}, - "active": true,
- "groups": [
- {
- "value": "6176ca93290d332c4c35f671",
- "display": "admin"
}, - {
- "value": "6176ca93290d332c4c35f66f",
- "display": "full"
}
], - "entitlements": [
- {
- "value": "access_library_my_library1",
- "display": "My Library 1"
}, - {
- "value": "access_library_my_library2",
- "display": "My Library 2"
}
]
}, - "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
]
}
This endpoint is used to create a new user in the system.
For security reasons passwords cannot be set via API, upon first login the user will be forced to set a new password.
schemas
(array of strings, required): An array of strings indicating the names of the SCIM schemas supported.
externalId
(string, optional): An optional Id used to identify the user in a system other than Stensul.
userName
(string, required): Email used to identify the user in Stensul.
name
(object, required): The user's name object containing the given name and family name.
givenName
(string, required): The user's given name.
familyName
(string, required): The user's family name.
active
(boolean): Indicates whether the user is active.
groups
(array of objects, required): An array of group objects that the user belongs to.
value
(string, required): The identifier of the group.entitlements
(array, required): An array of library permissions the user has access to.
value
(string, required): The name of the permission.The response will be in the form of a JSON schema representing the newly created user with the following properties:
id
(string): The unique identifier of the user.
externalId
(string): The external Id used to identify the user in a system other than Stensul.
meta
(object): Metadata object containing information about the user's creation and modification.
created
(string): The timestamp when the user was created.
lastModified
(string): The timestamp when the user was last modified.
location
(string): The location of the user resource.
resourceType
(string): The type of the user resource.
urn:ietf:params:scim:schemas:core:2.0:User
(object): The user object with the following properties:
userName
(string): Email used to identify the user in Stensul.
name
(object): The user's name object.
formatted
(string): The formatted name of the user.
familyName
(string): The user's family name.
givenName
(string): The user's given name.
active
(boolean): Indicates whether the user is active.
groups
(array of objects): An array of group objects that the user belongs to.
value
(string): The identifier of the group.
$ref
(string): The reference to the group.
display
(string): The display name of the group.
schemas
(array of strings): An array of strings indicating the names of the SCIM schemas supported by the user.
{
"id": "666b040717fbcd961603a49a",
"externalId": "some-unique-id",
"meta": {
"created": "2024-06-13T10:36:55-04:00",
"lastModified": "2024-06-13T10:36:55-04:00",
"location": "https://mycompany.stensul.com/scim/v2/Users/666b040717fbcd961603a49a",
"resourceType": "User"
},
"urn:ietf:params:scim:schemas:core:2.0:User": {
"userName": "example1@stensul.com",
"name": {
"formatted": "John Doe",
"familyName": "Doe",
"givenName": "John"
},
"active": true,
"groups": [
{
"value": "6176ca93290d332c4c35f671",
"$ref": "https://mycompany.stensul.com/scim/v2/Groups/6176ca93290d332c4c35f671",
"display": "admin"
},
{
"value": "6176ca93290d332c4c35f66f",
"$ref": "https://mycompany.stensul.com/scim/v2/Groups/6176ca93290d332c4c35f66f",
"display": "full"
}
],
"entitlements": [
{
"value": "",
"display": ""
}
],
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
]
}
Content-Type | string Example: application/scim+json |
schemas | Array of any Default: ["urn:ietf:params:scim:schemas:core:2.0:User"] Items Value: "urn:ietf:params:scim:schemas:core:2.0:User" |
userName | string <email> |
object | |
externalId | string |
active | boolean |
Array of objects | |
Array of objects |
{- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
], - "externalId": "some-unique-id",
- "userName": "example@stensul.com",
- "name": {
- "givenName": "John",
- "familyName": "Doe"
}, - "active": true,
- "groups": [
- {
- "value": "6176ca93290d332c4c35f671"
}, - {
- "value": "6176ca93290d332c4c35f66f"
}
], - "entitlements": [
- {
- "value": "access_library_ab-nulla-laboriosam-ea-occaecati-ab"
}
]
}
{- "id": "6669edf917fbcd961603a498",
- "externalId": "some-unique-id",
- "meta": {
- "created": "2024-06-12T14:50:33-04:00",
- "lastModified": "2024-06-12T14:50:33-04:00",
- "resourceType": "User"
}, - "urn:ietf:params:scim:schemas:core:2.0:User": {
- "userName": "example@stensul.com",
- "name": {
- "formatted": "John Doe",
- "familyName": "Doe",
- "givenName": "John"
}, - "active": true,
- "groups": [
- {
- "value": "6176ca93290d332c4c35f671",
- "display": "admin"
}, - {
- "value": "6176ca93290d332c4c35f66f",
- "display": "full"
}
], - "entitlements": [
- {
- "value": "access_library_my_library_1",
- "display": "My Library 1"
}, - {
- "value": "access_library_my_library_2",
- "display": "My Library 2"
}
]
}, - "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
]
}
This endpoint retrieves a list of users with the ability to paginate the results based on the filter criteria.
Method: GET
URL: {baseUrl}/scim/v2/Users
Query Parameters:
filter (string, optional): The filter criteria for retrieving users.
startIndex (integer, optional): The index of the first result to return.
count (integer, optional): The number of results to return.
sortBy (string, optional): The attribute to sort the results by. Supported values are "id", "externalId", "meta.created", "meta.lastModified", "userName", "name.familyName" and "name.givenName".
sortOrder (string, optional): The order to sort the results in. Allowed values are "ascending" or "descending".
The response is in JSON format and follows the SCIM (System for Cross-domain Identity Management) standard. Below is a JSON schema representing the response:
{
"type": "object",
"properties": {
"totalResults": {
"type": "integer"
},
"itemsPerPage": {
"type": "integer"
},
"startIndex": {
"type": "integer"
},
"schemas": {
"type": "array",
"items": {
"type": "string"
}
},
"Resources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"externalId": {
"type": "string"
},
"meta": {
"type": "object",
"properties": {
"created": {
"type": "string",
"format": "date-time"
},
"lastModified": {
"type": "string",
"format": "date-time"
},
"location": {
"type": "string"
},
"resourceType": {
"type": "string"
}
}
},
"urn:ietf:params:scim:schemas:core:2.0:User": {
"type": "object",
"properties": {
"userName": {
"type": "string"
},
"name": {
"type": "object",
"properties": {
"formatted": {
"type": "string"
},
"familyName": {
"type": "string"
},
"givenName": {
"type": "string"
}
}
},
"active": {
"type": "boolean"
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
},
"$ref": {
"type": "string"
},
"display": {
"type": "string"
}
}
}
}
}
},
"schemas": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
startIndex | integer |
count | integer Example: count=10 |
sortBy | string Enum: "id" "userName" "externalId" "meta.created" "meta.lastModified" "name.familyName" "name.givenName" Example: sortBy=userName The attribute to sort the results by. Supported values are "id", "externalId", "meta.created", "meta.lastModified", "userName", "name.familyName" and "name.givenName". |
sortOrder | string Enum: "ascending" "descending" Example: sortOrder=ascending The order to sort the results in. Allowed values are "ascending" or "descending". |
Content-Type | string Example: application/scim+json |
{- "totalResults": 2,
- "itemsPerPage": 10,
- "startIndex": 1,
- "schemas": [
- "urn:ietf:params:scim:api:messages:2.0:ListResponse"
], - "Resources": [
- {
- "id": "663a829c778347154f045a7c",
- "externalId": "some-unique-id",
- "meta": {
- "created": "2024-05-07T15:35:56-04:00",
- "lastModified": "2024-06-12T16:20:39-04:00",
- "resourceType": "User"
}, - "urn:ietf:params:scim:schemas:core:2.0:User": {
- "userName": "alice@stensul.com",
- "name": {
- "formatted": "Alice Smith",
- "familyName": "Smith",
- "givenName": "Alice"
}, - "active": true,
- "groups": [
- {
- "value": "6176ca93290d332c4c35f66f",
- "display": "full"
}
]
}, - "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
]
}, - {
- "id": "6669edf917fbcd961603a498",
- "externalId": "some-unique-id",
- "meta": {
- "created": "2024-06-12T14:50:33-04:00",
- "lastModified": "2024-06-12T14:50:33-04:00",
- "resourceType": "User"
}, - "urn:ietf:params:scim:schemas:core:2.0:User": {
- "userName": "example@stensul.com",
- "name": {
- "formatted": "John Doe",
- "familyName": "Doe",
- "givenName": "John"
}, - "active": true,
- "groups": [
- {
- "value": "6176ca93290d332c4c35f671",
- "display": "admin"
}, - {
- "value": "6176ca93290d332c4c35f66f",
- "display": "full"
}
]
}, - "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
]
}
]
}
This endpoint retrieves a list of groups with the ability to paginate the results based on the filter criteria.
Method: GET
URL: {baseUrl}/scim/v2/Groups
Query Parameters:
filter (string, optional): The filter criteria for retrieving groups. "id", "displayName" and "members" are supported. Filter values are case insensitive.
startIndex (integer, optional): The index of the first result to return.
count (integer, optional): The number of results to return.
sortBy (string, optional): The attribute to sort the results by. Supported values are "id", "displayName", "meta.created", "meta.lastModified".
sortOrder (string, optional): The order to sort the results in. Allowed values are "ascending" or "descending".
The response is in JSON format with the following schema:
{
"type": "object",
"properties": {
"totalResults": {
"type": "integer"
},
"itemsPerPage": {
"type": "integer"
},
"startIndex": {
"type": "integer"
},
"schemas": {
"type": "array",
"items": {
"type": "string"
}
},
"Resources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"meta": {
"type": "object",
"properties": {
"created": {
"type": "string"
},
"lastModified": {
"type": "string"
},
"location": {
"type": "string"
},
"resourceType": {
"type": "string"
}
}
},
"schemas": {
"type": "array",
"items": {
"type": "string"
}
},
"urn:ietf:params:scim:schemas:core:2.0:Group": {
"type": "object",
"properties": {
"displayName": {
"type": "string"
},
"members": {
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
},
"$ref": {
"type": "string"
},
"display": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
startIndex | integer The index entry by which to begin the list of returned results. |
count | integer Example: count=10 Limit the number of results returned in a single response. By default, the system returns a list of 100 users. |
filter | string Example: filter=displayName eq "full" Filter results by a specific word or phrase. Filter values are case-insensitive. This query parameter supports "id", "displayName" and "members" |
sortBy | string Enum: "id" "displayName" "meta.created" "meta.lastModified" Example: sortBy=displayName The attribute to sort the results by. Supported values are "id", "displayName", "meta.created", "meta.lastModified". |
sortOrder | string Enum: "ascending" "descending" Example: sortOrder=ascending The order to sort the results in. Allowed values are "ascending" or "descending". |
Content-Type | string Example: application/scim+json |
{- "totalResults": 3,
- "itemsPerPage": 10,
- "startIndex": 0,
- "schemas": [
- "urn:ietf:params:scim:api:messages:2.0:ListResponse"
], - "Resources": [
- {
- "id": "6176ca93290d332c4c35f66f",
- "meta": {
- "created": "2021-10-25T11:17:39-04:00",
- "lastModified": "2024-05-22T14:08:21-04:00",
- "resourceType": "Group"
}, - "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:Group"
], - "urn:ietf:params:scim:schemas:core:2.0:Group": {
- "displayName": "full",
- "members": [
- {
- "value": "6176cab757475472c31392a2",
- "display": "John Doe"
}, - {
- "value": "663a829c778347154f045a7c",
- "display": "Alice Smith"
}
]
}
}, - {
- "id": "6176ca93290d332c4c35f670",
- "meta": {
- "created": "2021-10-25T11:17:39-04:00",
- "lastModified": "2021-10-25T11:17:39-04:00",
- "resourceType": "Group"
}, - "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:Group"
], - "urn:ietf:params:scim:schemas:core:2.0:Group": {
- "displayName": "reviewer",
- "members": [
- {
- "value": "6176cab757475472c31392a2",
- "display": "John Doe"
}, - {
- "value": "663a829c778347154f045a7c",
- "display": "Alice Smith"
}
]
}
}, - {
- "id": "6176ca93290d332c4c35f66e",
- "meta": {
- "created": "2021-10-25T11:17:39-04:00",
- "lastModified": "2023-12-15T10:27:41-05:00",
- "resourceType": "Group"
}, - "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:Group"
], - "urn:ietf:params:scim:schemas:core:2.0:Group": {
- "displayName": "user",
- "members": [
- {
- "value": "6176cab757475472c31392a2",
- "display": "John Doe"
}, - {
- "value": "663a829c778347154f045a7c",
- "display": "Alice Smith"
}
]
}
}
]
}
This endpoint is used to create a new group in the system.
schemas
(array of strings, required): An array of strings indicating the names of the SCIM schemas supported.
displayName
(string, required): Group name.
members
(array of objects, optional): An array of user objects.
value
(string, required): The identifier of the user.The response will be in the form of a JSON schema representing the newly created group with the following properties:
id
(string): The unique identifier of the group.
meta
(object): Metadata object containing information about the group's creation and modification.
created
(string): The timestamp when the group was created.
lastModified
(string): The timestamp when the group was last modified.
location
(string): The location of the group resource.
resourceType
(string): The type of the group resource.
urn:ietf:params:scim:schemas:core:2.0:Group
(object): The group object with the following properties:
displayName
(string): Group name.
members (array of objects): An array of user objects members of the group.
value
(string): The identifier of the user.
$ref
(string): The reference to the user.
display
(string): The display name of the user.
schemas
(array of strings): An array of strings indicating the names of the SCIM schemas supported by the group.
{
"id": "668c478922b4533ad40f2e7a",
"meta": {
"created": "2024-07-08T16:09:45-04:00",
"lastModified": "2024-07-08T16:09:45-04:00",
"location": "https://mycompany.stensul.com/scim/v2/Groups/668c478922b4533ad40f2e7a",
"resourceType": "Group"
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Group"
],
"urn:ietf:params:scim:schemas:core:2.0:Group": {
"displayName": "SCIM Group",
"members": [
{
"value": "667adbb640ee4dd72b006655",
"$ref": "https://mycompany.stensul.com/scim/v2/Users/667adbb640ee4dd72b006655",
"display": "John Doe"
}
]
}
}
Content-Type | string Example: application/scim+json |
schemas | Array of any Default: ["urn:ietf:params:scim:schemas:core:2.0:Group"] Items Value: "urn:ietf:params:scim:schemas:core:2.0:Group" |
displayName | string |
Array of objects |
{- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:Group"
], - "displayName": "SCIM Group",
- "members": [
- {
- "value": "667adbb640ee4dd72b006655"
}
]
}
{- "id": "6686fbbeccd0a3cca10f1cd5",
- "meta": {
- "created": "2024-07-04T15:45:02-04:00",
- "lastModified": "2024-07-04T15:45:02-04:00",
- "resourceType": "Group"
}, - "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:Group"
], - "urn:ietf:params:scim:schemas:core:2.0:Group": {
- "displayName": "SCIM Group",
- "members": [
- {
- "value": "61e98b7a9a8c1068111f4af3",
- "display": "John Doe"
}, - {
- "value": "667adbb640ee4dd72b006655",
- "display": "John Doe"
}
]
}
}
This endpoint allows you to update the details of a group.
schemas
(array, required): An array of schema URLs.
displayName
(string, required): The name of the group.
members
(array, optional): An array of members of the group.
value
(string, required): The id of the user.The response is a JSON object conforming to the following schema:
{
"id": "string",
"meta": {
"created": "string",
"lastModified": "string",
"location": "string",
"resourceType": "string"
},
"urn:ietf:params:scim:schemas:core:2.0:Group": {
"displayName": "string",
"members": [
{
"value": "string",
"$ref": "string",
"display": "string"
}
],
},
"schemas": ["string"]
}
groupId required | string |
Content-Type | string Example: application/scim+json |
schemas | Array of any Default: ["urn:ietf:params:scim:schemas:core:2.0:Group"] Items Value: "urn:ietf:params:scim:schemas:core:2.0:Group" |
displayName | string |
Array of objects |
{- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:Group"
], - "displayName": "SCIM Group",
- "members": [
- {
- "value": "667adbb640ee4dd72b006655"
}
]
}
{- "id": "6686fbbeccd0a3cca10f1cd5",
- "meta": {
- "created": "2024-07-04T15:45:02-04:00",
- "lastModified": "2024-07-04T16:13:50-04:00",
- "resourceType": "Group"
}, - "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:Group"
], - "urn:ietf:params:scim:schemas:core:2.0:Group": {
- "displayName": "SCIM Group",
- "members": [
- {
- "value": "61e98b7a9a8c1068111f4af3",
- "display": "John Doe"
}, - {
- "value": "667adbb640ee4dd72b006655",
- "display": "John Doe"
}
]
}
}
This endpoint is used to update a specific group's information using the SCIM (System for Cross-domain Identity Management) protocol.
schemas
(array of strings, required): An array of URNs that indicate the schema used for the request.
Operations
(array of objects, required): An array of operations to be performed on the group's information.
op
(string, required): The operation to be performed, e.g., "replace", "add" or "remove".
value
(object, required): The updated value for the specified attribute.
displayName
(string): The name of the group.
members (array of objects): An array of users for the group.
value
(string, required): The unique identifier of the user.path
(string, required if "op" is "add" or "remove"): The path of the attribute to be updated, e.g., "members".
value
(string, required): The updated value for the specified attribute.
The response of this request will conform to a JSON schema that represents the updated user information.
{
"id": "string",
"meta": {
"created": "string",
"lastModified": "string",
"location": "string",
"resourceType": "string"
},
"schemas": [
"string"
],
"urn:ietf:params:scim:schemas:core:2.0:Group": {
"displayName": "string",
"members": [
{
"value": "string",
"$ref": "string",
"display": "string"
}
]
}
}
groupId required | string |
Content-Type | string Example: application/scim+json |
{- "schemas": [
- "urn:ietf:params:scim:api:messages:2.0:PatchOp"
], - "Operations": [
- {
- "op": "replace",
- "value": {
- "displayName": "SCIM Group",
- "members": [
- {
- "value": "6176cab757475472c31392a2"
}
]
}
}, - {
- "op": "add",
- "path": "members",
- "value": {
- "members": [
- {
- "value": "61e98b7a9a8c1068111f4af3"
}, - {
- "value": "627016f10a7f953ea1187a34"
}
]
}
}, - {
- "op": "remove",
- "path": "members",
- "value": {
- "members": [
- {
- "value": "627016f10a7f953ea1187a34"
}
]
}
}
]
}
{- "id": "6176ca93290d332c4c35f66f",
- "meta": {
- "created": "2021-10-25T11:17:39-04:00",
- "lastModified": "2024-07-08T16:44:59-04:00",
- "resourceType": "Group"
}, - "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:Group"
], - "urn:ietf:params:scim:schemas:core:2.0:Group": {
- "displayName": "SCIM Group",
- "members": [
- {
- "value": "61e98b7a9a8c1068111f4af3",
- "display": "John Doe"
}
]
}
}
This endpoint retrieves information about a specific group identified by the groupId
.
No request body is required for this endpoint. The groupId
path parameter should be provided in the URL.
The response will be in JSON format with the following schema:
{
"id": "id",
"meta": {
"created": "string",
"lastModified": "string",
"location": "string",
"resourceType": "string"
},
"schemas": ["string"],
"urn:ietf:params:scim:schemas:core:2.0:Group": {
"displayName": "string",
"members": [
{
"value": "string",
"$ref": "string",
"display": "string"
}
]
}
}
The response will contain details about the group including its ID, creation and modification metadata, name, and members.
groupId required | string |
Content-Type | string Example: application/scim+json |
{- "id": "6176ca93290d332c4c35f66f",
- "meta": {
- "created": "2021-10-25T11:17:39-04:00",
- "lastModified": "2024-05-22T14:08:21-04:00",
- "resourceType": "Group"
}, - "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:Group"
], - "urn:ietf:params:scim:schemas:core:2.0:Group": {
- "displayName": "full",
- "members": [
- {
- "value": "663a829c778347154f045a7c",
- "display": "Alice Smith"
}
]
}
}
This endpoint is used to delete a specific group by its ID.
Method: DELETE
Endpoint: {baseUrl}/scim/v2/Groups/{groupId}
The response for this request is in JSON format and includes the following schema:
{
"type": "object",
"properties": {
"schemas": {
"type": "array"
},
"detail": {
"type": "string"
},
"status": {
"type": "integer"
}
}
}
The response will have a status code of 404 if the group with the specified ID is not found.
groupId required | string |
Content-Type | string Example: application/scim+json |
{- "schemas": [
- "urn:ietf:params:scim:api:messages:2.0:Error"
], - "detail": "Resource \"6686fbbeccd0a3cca10f1cda\" not found",
- "status": 404
}
This endpoint retrieves the schema for the User resource in the SCIM API.
No request body parameters are required for this endpoint.
The response for this request is in the form of a JSON schema, providing the structure and attributes for the User resource. An example response is as follows:
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Schema"
],
"id": "urn:ietf:params:scim:schemas:core:2.0:User",
"meta": {
"resourceType": "Schema",
"created": "2001-01-01T00:00:00+00:00",
"lastModified": "2001-01-01T00:00:00+00:00",
"version": "W/\"5CF43FF3C1E0C85DE1F13305C3B1AC83009FF941\"",
"location": "https://mycompany.stensul.com/scim/v2/Schemas/urn:ietf:params:scim:schemas:core:2.0:User"
},
"name": "User",
"description": "User resource.",
"attributes": [
{
"name": "userName",
"description": "Unique identifier for the User, typically used by the user to directly authenticate to the service provider. Each User MUST include a non-empty userName value. This identifier MUST be unique across the service provider's entire set of Users. REQUIRED.",
"type": "string",
"mutability": "readWrite",
"returned": "default",
"uniqueness": "server",
"required": true,
"multiValued": false,
"caseExact": false
},
{
"name": "name",
"description": "The components of the user's real name. Providers MAY return just the full name as a single string in the formatted sub-attribute, or they MAY return just the individual component attributes using the other sub-attributes, or they MAY return both. If both variants are returned, they SHOULD be describing the same name, with the formatted name indicating how the component attributes should be combined.",
"type": "complex",
"mutability": "readWrite",
"returned": "default",
"uniqueness": "none",
"required": true,
"multiValued": false,
"caseExact": false,
"subAttributes": [
{
"name": "formatted",
"description": "The full name, including all middle names, titles, and suffixes as appropriate, formatted for display (e.g., 'Ms. Barbara J Jensen, III'].",
"type": "string",
"mutability": "readWrite",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": false,
"caseExact": false
},
{
"name": "familyName",
"description": "The family name of the User, or last name in most Western languages (e.g., 'Jensen' given the full name 'Ms. Barbara J Jensen, III'].",
"type": "string",
"mutability": "readWrite",
"returned": "default",
"uniqueness": "none",
"required": true,
"multiValued": false,
"caseExact": false
},
{
"name": "givenName",
"description": "The given name of the User, or first name in most Western languages (e.g., 'Barbara' given the full name 'Ms. Barbara J Jensen, III'].",
"type": "string",
"mutability": "readWrite",
"returned": "default",
"uniqueness": "none",
"required": true,
"multiValued": false,
"caseExact": false
}
]
},
{
"name": "active",
"description": "A Boolean value indicating the User's administrative status.",
"type": "boolean",
"mutability": "readWrite",
"returned": "default",
"required": false,
"multiValued": false,
"caseExact": false
},
{
"name": "groups",
"description": "A list of groups to which the user belongs, either through direct membership, through nested groups, or dynamically calculated.",
"type": "complex",
"mutability": "readOnly",
"returned": "default",
"uniqueness": "none",
"required": true,
"multiValued": true,
"caseExact": false,
"subAttributes": [
{
"name": "value",
"description": "The identifier of the User's group.",
"type": "string",
"mutability": "readOnly",
"returned": "default",
"uniqueness": "none",
"required": true,
"multiValued": false,
"caseExact": false
},
{
"name": "$ref",
"description": "The URI of the corresponding 'Group' resource to which the user belongs.",
"type": "reference",
"mutability": "readOnly",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": false,
"caseExact": false,
"referenceTypes": [
"Group"
]
},
{
"name": "display",
"description": "A human-readable name, primarily used for display purposes. READ-ONLY.",
"type": "string",
"mutability": "readOnly",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": false,
"caseExact": false
}
]
}
]
}
{- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:Schema"
], - "id": "urn:ietf:params:scim:schemas:core:2.0:User",
- "meta": {
- "resourceType": "Schema",
- "created": "2001-01-01T00:00:00+00:00",
- "lastModified": "2001-01-01T00:00:00+00:00",
- "version": "W/\"5CF43FF3C1E0C85DE1F13305C3B1AC83009FF941\"",
}, - "name": "User",
- "description": "User resource.",
- "attributes": [
- {
- "name": "userName",
- "description": "Unique identifier for the User, typically used by the user to directly authenticate to the service provider. Each User MUST include a non-empty userName value. This identifier MUST be unique across the service provider's entire set of Users. REQUIRED.",
- "type": "string",
- "mutability": "readWrite",
- "returned": "default",
- "uniqueness": "server",
- "required": true,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "name",
- "description": "The components of the user's real name. Providers MAY return just the full name as a single string in the formatted sub-attribute, or they MAY return just the individual component attributes using the other sub-attributes, or they MAY return both. If both variants are returned, they SHOULD be describing the same name, with the formatted name indicating how the component attributes should be combined.",
- "type": "complex",
- "mutability": "readWrite",
- "returned": "default",
- "uniqueness": "none",
- "required": true,
- "multiValued": false,
- "caseExact": false,
- "subAttributes": [
- {
- "name": "formatted",
- "description": "The full name, including all middle names, titles, and suffixes as appropriate, formatted for display (e.g., 'Ms. Barbara J Jensen, III'].",
- "type": "string",
- "mutability": "readWrite",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "familyName",
- "description": "The family name of the User, or last name in most Western languages (e.g., 'Jensen' given the full name 'Ms. Barbara J Jensen, III'].",
- "type": "string",
- "mutability": "readWrite",
- "returned": "default",
- "uniqueness": "none",
- "required": true,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "givenName",
- "description": "The given name of the User, or first name in most Western languages (e.g., 'Barbara' given the full name 'Ms. Barbara J Jensen, III'].",
- "type": "string",
- "mutability": "readWrite",
- "returned": "default",
- "uniqueness": "none",
- "required": true,
- "multiValued": false,
- "caseExact": false
}
]
}, - {
- "name": "active",
- "description": "A Boolean value indicating the User's administrative status.",
- "type": "boolean",
- "mutability": "readWrite",
- "returned": "default",
- "required": false,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "groups",
- "description": "A list of groups to which the user belongs, either through direct membership, through nested groups, or dynamically calculated.",
- "type": "complex",
- "mutability": "readOnly",
- "returned": "default",
- "uniqueness": "none",
- "required": true,
- "multiValued": true,
- "caseExact": false,
- "subAttributes": [
- {
- "name": "value",
- "description": "The identifier of the User's group.",
- "type": "string",
- "mutability": "readOnly",
- "returned": "default",
- "uniqueness": "none",
- "required": true,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "$ref",
- "description": "The URI of the corresponding 'Group' resource to which the user belongs.",
- "type": "reference",
- "mutability": "readOnly",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": false,
- "caseExact": false,
- "referenceTypes": [
- "Group"
]
}, - {
- "name": "display",
- "description": "A human-readable name, primarily used for display purposes. READ-ONLY.",
- "type": "string",
- "mutability": "readOnly",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": false,
- "caseExact": false
}
]
}, - {
- "name": "entitlements",
- "description": "A list of Library permissions the user has access to.",
- "type": "complex",
- "mutability": "readWrite",
- "returned": "default",
- "uniqueness": "none",
- "required": true,
- "multiValued": true,
- "caseExact": false,
- "subAttributes": [
- {
- "name": "value",
- "description": "The name of the Libraries's permission.",
- "type": "string",
- "mutability": "readOnly",
- "returned": "default",
- "uniqueness": "none",
- "required": true,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "display",
- "description": "A human-readable name, primarily used for display purposes. READ-ONLY.",
- "type": "string",
- "mutability": "readOnly",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": false,
- "caseExact": false
}
]
}
]
}
This endpoint retrieves the schema for the SCIM group resource.
This endpoint does not require any request body.
The response is a JSON schema representing the SCIM group resource, with the following structure:
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Schema"
],
"id": "urn:ietf:params:scim:schemas:core:2.0:Group",
"meta": {
"resourceType": "Schema",
"created": "2001-01-01T00:00:00+00:00",
"lastModified": "2001-01-01T00:00:00+00:00",
"version": "W/\"05A8B9B6C912798878B44A358F579A083EF9C4A3\"",
"location": "https://mycompany.stensul.com/scim/v2/Schemas/urn:ietf:params:scim:schemas:core:2.0:Group"
},
"name": "Group",
"description": "Group resource.",
"attributes": [
{
"name": "displayName",
"description": "A human-readable name for the Group. REQUIRED.",
"type": "string",
"mutability": "readWrite",
"returned": "default",
"uniqueness": "none",
"required": true,
"multiValued": false,
"caseExact": false
},
{
"name": "members",
"description": "A list of members of the Group.",
"type": "complex",
"mutability": "readWrite",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": true,
"caseExact": false,
"subAttributes": [
{
"name": "type",
"description": "A label indicating the type of resource, e.g., 'User' or 'Group'.",
"type": "string",
"mutability": "immutable",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": false,
"caseExact": false,
"canonicalValues": [
"User",
"Group"
]
},
{
"name": "display",
"description": "Display name for the member",
"type": "string",
"mutability": "immutable",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": false,
"caseExact": false
},
{
"name": "value",
"description": "Identifier of the member of this Group.",
"type": "string",
"mutability": "immutable",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": false,
"caseExact": false
},
{
"name": "$ref",
"description": "The URI corresponding to a SCIM resource that is a member of this Group.",
"type": "reference",
"mutability": "immutable",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": false,
"caseExact": false,
"referenceTypes": [
"User",
"Group"
]
}
]
}
]
}
{- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:Schema"
], - "id": "urn:ietf:params:scim:schemas:core:2.0:Group",
- "meta": {
- "resourceType": "Schema",
- "created": "2001-01-01T00:00:00+00:00",
- "lastModified": "2001-01-01T00:00:00+00:00",
- "version": "W/\"05A8B9B6C912798878B44A358F579A083EF9C4A3\"",
}, - "name": "Group",
- "description": "Group resource.",
- "attributes": [
- {
- "name": "displayName",
- "description": "A human-readable name for the Group. REQUIRED.",
- "type": "string",
- "mutability": "readWrite",
- "returned": "default",
- "uniqueness": "none",
- "required": true,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "members",
- "description": "A list of members of the Group.",
- "type": "complex",
- "mutability": "readWrite",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": true,
- "caseExact": false,
- "subAttributes": [
- {
- "name": "type",
- "description": "A label indicating the type of resource, e.g., 'User' or 'Group'.",
- "type": "string",
- "mutability": "immutable",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": false,
- "caseExact": false,
- "canonicalValues": [
- "User",
- "Group"
]
}, - {
- "name": "display",
- "description": "Display name for the member",
- "type": "string",
- "mutability": "immutable",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "value",
- "description": "Identifier of the member of this Group.",
- "type": "string",
- "mutability": "immutable",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "$ref",
- "description": "The URI corresponding to a SCIM resource that is a member of this Group.",
- "type": "reference",
- "mutability": "immutable",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": false,
- "caseExact": false,
- "referenceTypes": [
- "User",
- "Group"
]
}
]
}
]
}
This endpoint retrieves the SCIM (System for Cross-domain Identity Management) schemas.
The response is a JSON object with the following structure:
totalResults
(integer): The total number of results.
itemsPerPage
(integer): The number of items per page.
startIndex
(integer): The start index of the results.
schemas
(array of strings): An array of schema names.
Resources
(array): An array of resource objects, each with the following properties:
schemas
(array of strings): An array of schema names for the resource.
id
(string): The ID of the resource.
meta
(object): An object containing metadata for the resource, with the following properties:
resourceType
(string): The type of the resource.
created
(string): The creation timestamp.
lastModified
(string): The last modification timestamp.
version
(string): The version of the resource.
location
(string): The location of the resource.
name
(string): The name of the resource.
description
(string): The description of the resource.
attributes
(array): An array of attribute objects, each with the following properties:
name
(string): The name of the attribute.
description
(string): The description of the attribute.
type
(string): The type of the attribute.
mutability
(string): The mutability of the attribute.
returned
(string): The attribute's returned behavior.
uniqueness
(string): The uniqueness constraint of the attribute.
required
(boolean): Indicates if the attribute is required.
multiValued
(boolean): Indicates if the attribute is multi-valued.
caseExact
(boolean): Indicates if the attribute is case-sensitive.
{
"totalResults": 2,
"itemsPerPage": 2,
"startIndex": 1,
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
],
"Resources": [
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Schema"
],
"id": "urn:ietf:params:scim:schemas:core:2.0:User",
"meta": {
"resourceType": "Schema",
"created": "2001-01-01T00:00:00+00:00",
"lastModified": "2001-01-01T00:00:00+00:00",
"version": "W/\"5CF43FF3C1E0C85DE1F13305C3B1AC83009FF941\"",
"location": "https://mycompany.stensul.com/scim/v2/Schemas/urn:ietf:params:scim:schemas:core:2.0:User"
},
"name": "User",
"description": "User resource.",
"attributes": [
{
"name": "userName",
"description": "Unique identifier for the User, typically used by the user to directly authenticate to the service provider. Each User MUST include a non-empty userName value. This identifier MUST be unique across the service provider's entire set of Users. REQUIRED.",
"type": "string",
"mutability": "readWrite",
"returned": "default",
"uniqueness": "server",
"required": true,
"multiValued": false,
"caseExact": false
},
{
"name": "name",
"description": "The components of the user's real name. Providers MAY return just the full name as a single string in the formatted sub-attribute, or they MAY return just the individual component attributes using the other sub-attributes, or they MAY return both. If both variants are returned, they SHOULD be describing the same name, with the formatted name indicating how the component attributes should be combined.",
"type": "complex",
"mutability": "readWrite",
"returned": "default",
"uniqueness": "none",
"required": true,
"multiValued": false,
"caseExact": false,
"subAttributes": [
{
"name": "formatted",
"description": "The full name, including all middle names, titles, and suffixes as appropriate, formatted for display (e.g., 'Ms. Barbara J Jensen, III'].",
"type": "string",
"mutability": "readWrite",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": false,
"caseExact": false
},
{
"name": "familyName",
"description": "The family name of the User, or last name in most Western languages (e.g., 'Jensen' given the full name 'Ms. Barbara J Jensen, III'].",
"type": "string",
"mutability": "readWrite",
"returned": "default",
"uniqueness": "none",
"required": true,
"multiValued": false,
"caseExact": false
},
{
"name": "givenName",
"description": "The given name of the User, or first name in most Western languages (e.g., 'Barbara' given the full name 'Ms. Barbara J Jensen, III'].",
"type": "string",
"mutability": "readWrite",
"returned": "default",
"uniqueness": "none",
"required": true,
"multiValued": false,
"caseExact": false
}
]
},
{
"name": "active",
"description": "A Boolean value indicating the User's administrative status.",
"type": "boolean",
"mutability": "readWrite",
"returned": "default",
"required": false,
"multiValued": false,
"caseExact": false
},
{
"name": "groups",
"description": "A list of groups to which the user belongs, either through direct membership, through nested groups, or dynamically calculated.",
"type": "complex",
"mutability": "readOnly",
"returned": "default",
"uniqueness": "none",
"required": true,
"multiValued": true,
"caseExact": false,
"subAttributes": [
{
"name": "value",
"description": "The identifier of the User's group.",
"type": "string",
"mutability": "readOnly",
"returned": "default",
"uniqueness": "none",
"required": true,
"multiValued": false,
"caseExact": false
},
{
"name": "$ref",
"description": "The URI of the corresponding 'Group' resource to which the user belongs.",
"type": "reference",
"mutability": "readOnly",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": false,
"caseExact": false,
"referenceTypes": [
"Group"
]
},
{
"name": "display",
"description": "A human-readable name, primarily used for display purposes. READ-ONLY.",
"type": "string",
"mutability": "readOnly",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": false,
"caseExact": false
}
]
}
]
},
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Schema"
],
"id": "urn:ietf:params:scim:schemas:core:2.0:Group",
"meta": {
"resourceType": "Schema",
"created": "2001-01-01T00:00:00+00:00",
"lastModified": "2001-01-01T00:00:00+00:00",
"version": "W/\"05A8B9B6C912798878B44A358F579A083EF9C4A3\"",
"location": "https://mycompany.stensul.com/scim/v2/Schemas/urn:ietf:params:scim:schemas:core:2.0:Group"
},
"name": "Group",
"description": "Group resource.",
"attributes": [
{
"name": "displayName",
"description": "A human-readable name for the Group. REQUIRED.",
"type": "string",
"mutability": "readWrite",
"returned": "default",
"uniqueness": "none",
"required": true,
"multiValued": false,
"caseExact": false
},
{
"name": "members",
"description": "A list of members of the Group.",
"type": "complex",
"mutability": "readWrite",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": true,
"caseExact": false,
"subAttributes": [
{
"name": "type",
"description": "A label indicating the type of resource, e.g., 'User' or 'Group'.",
"type": "string",
"mutability": "immutable",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": false,
"caseExact": false,
"canonicalValues": [
"User",
"Group"
]
},
{
"name": "display",
"description": "Display name for the member",
"type": "string",
"mutability": "immutable",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": false,
"caseExact": false
},
{
"name": "value",
"description": "Identifier of the member of this Group.",
"type": "string",
"mutability": "immutable",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": false,
"caseExact": false
},
{
"name": "$ref",
"description": "The URI corresponding to a SCIM resource that is a member of this Group.",
"type": "reference",
"mutability": "immutable",
"returned": "default",
"uniqueness": "none",
"required": false,
"multiValued": false,
"caseExact": false,
"referenceTypes": [
"User",
"Group"
]
}
]
}
]
}
]
}
Content-Type | string Example: application/scim+json |
{- "totalResults": 2,
- "itemsPerPage": 2,
- "startIndex": 1,
- "schemas": [
- "urn:ietf:params:scim:api:messages:2.0:ListResponse"
], - "Resources": [
- {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:Schema"
], - "id": "urn:ietf:params:scim:schemas:core:2.0:User",
- "meta": {
- "resourceType": "Schema",
- "created": "2001-01-01T00:00:00+00:00",
- "lastModified": "2001-01-01T00:00:00+00:00",
- "version": "W/\"5CF43FF3C1E0C85DE1F13305C3B1AC83009FF941\"",
}, - "name": "User",
- "description": "User resource.",
- "attributes": [
- {
- "name": "userName",
- "description": "Unique identifier for the User, typically used by the user to directly authenticate to the service provider. Each User MUST include a non-empty userName value. This identifier MUST be unique across the service provider's entire set of Users. REQUIRED.",
- "type": "string",
- "mutability": "readWrite",
- "returned": "default",
- "uniqueness": "server",
- "required": true,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "name",
- "description": "The components of the user's real name. Providers MAY return just the full name as a single string in the formatted sub-attribute, or they MAY return just the individual component attributes using the other sub-attributes, or they MAY return both. If both variants are returned, they SHOULD be describing the same name, with the formatted name indicating how the component attributes should be combined.",
- "type": "complex",
- "mutability": "readWrite",
- "returned": "default",
- "uniqueness": "none",
- "required": true,
- "multiValued": false,
- "caseExact": false,
- "subAttributes": [
- {
- "name": "formatted",
- "description": "The full name, including all middle names, titles, and suffixes as appropriate, formatted for display (e.g., 'Ms. Barbara J Jensen, III'].",
- "type": "string",
- "mutability": "readWrite",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "familyName",
- "description": "The family name of the User, or last name in most Western languages (e.g., 'Jensen' given the full name 'Ms. Barbara J Jensen, III'].",
- "type": "string",
- "mutability": "readWrite",
- "returned": "default",
- "uniqueness": "none",
- "required": true,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "givenName",
- "description": "The given name of the User, or first name in most Western languages (e.g., 'Barbara' given the full name 'Ms. Barbara J Jensen, III'].",
- "type": "string",
- "mutability": "readWrite",
- "returned": "default",
- "uniqueness": "none",
- "required": true,
- "multiValued": false,
- "caseExact": false
}
]
}, - {
- "name": "active",
- "description": "A Boolean value indicating the User's administrative status.",
- "type": "boolean",
- "mutability": "readWrite",
- "returned": "default",
- "required": false,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "groups",
- "description": "A list of groups to which the user belongs, either through direct membership, through nested groups, or dynamically calculated.",
- "type": "complex",
- "mutability": "readOnly",
- "returned": "default",
- "uniqueness": "none",
- "required": true,
- "multiValued": true,
- "caseExact": false,
- "subAttributes": [
- {
- "name": "value",
- "description": "The identifier of the User's group.",
- "type": "string",
- "mutability": "readOnly",
- "returned": "default",
- "uniqueness": "none",
- "required": true,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "$ref",
- "description": "The URI of the corresponding 'Group' resource to which the user belongs.",
- "type": "reference",
- "mutability": "readOnly",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": false,
- "caseExact": false,
- "referenceTypes": [
- "Group"
]
}, - {
- "name": "display",
- "description": "A human-readable name, primarily used for display purposes. READ-ONLY.",
- "type": "string",
- "mutability": "readOnly",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": false,
- "caseExact": false
}
]
}
]
}, - {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:Schema"
], - "id": "urn:ietf:params:scim:schemas:core:2.0:Group",
- "meta": {
- "resourceType": "Schema",
- "created": "2001-01-01T00:00:00+00:00",
- "lastModified": "2001-01-01T00:00:00+00:00",
- "version": "W/\"05A8B9B6C912798878B44A358F579A083EF9C4A3\"",
}, - "name": "Group",
- "description": "Group resource.",
- "attributes": [
- {
- "name": "displayName",
- "description": "A human-readable name for the Group. REQUIRED.",
- "type": "string",
- "mutability": "readWrite",
- "returned": "default",
- "uniqueness": "none",
- "required": true,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "members",
- "description": "A list of members of the Group.",
- "type": "complex",
- "mutability": "readWrite",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": true,
- "caseExact": false,
- "subAttributes": [
- {
- "name": "type",
- "description": "A label indicating the type of resource, e.g., 'User' or 'Group'.",
- "type": "string",
- "mutability": "immutable",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": false,
- "caseExact": false,
- "canonicalValues": [
- "User",
- "Group"
]
}, - {
- "name": "display",
- "description": "Display name for the member",
- "type": "string",
- "mutability": "immutable",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "value",
- "description": "Identifier of the member of this Group.",
- "type": "string",
- "mutability": "immutable",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": false,
- "caseExact": false
}, - {
- "name": "$ref",
- "description": "The URI corresponding to a SCIM resource that is a member of this Group.",
- "type": "reference",
- "mutability": "immutable",
- "returned": "default",
- "uniqueness": "none",
- "required": false,
- "multiValued": false,
- "caseExact": false,
- "referenceTypes": [
- "User",
- "Group"
]
}
]
}
]
}
]
}
This endpoint retrieves the resource types available in the system.
Valid resource types include Users
and Groups
.
No request body is required for this endpoint.
The response will be in JSON format with the following schema:
{
"totalResults": integer,
"itemsPerPage": integer,
"startIndex": integer,
"schemas": [string],
"Resources": [
{
"schemas": [string],
"id": string,
"name": string,
"endpoint": string,
"description": string,
"schema": string,
"schemaExtensions": [array],
"meta": {
"location": string,
"resourceType": string
}
}
]
}
The totalResults
field indicates the total number of results available. Each Resource
object contains information about a specific resource type, including its id
, name
, endpoint
, description
, schema
, schemaExtensions
, and meta
information.
Example response:
{
"totalResults": 2,
"itemsPerPage": 2,
"startIndex": 1,
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
],
"Resources": [
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:ResourceType"
],
"id": "User",
"name": "Users",
"endpoint": "https://mycompany.stensul.com/scim/v2/Users",
"description": "User Account",
"schema": "urn:ietf:params:scim:schemas:core:2.0:User",
"schemaExtensions": [],
"meta": {
"location": "https://mycompany.stensul.com/scim/v2/ResourceTypes/User",
"resourceType": "ResourceType"
}
},
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:ResourceType"
],
"id": "Group",
"name": "Groups",
"endpoint": "https://mycompany.stensul.com/scim/v2/Groups",
"description": "Group",
"schema": "urn:ietf:params:scim:schemas:core:2.0:User",
"schemaExtensions": [],
"meta": {
"location": "https://mycompany.stensul.com/scim/v2/ResourceTypes/Group",
"resourceType": "ResourceType"
}
}
]
}
Content-Type | string Example: application/scim+json |
{- "totalResults": 2,
- "itemsPerPage": 2,
- "startIndex": 1,
- "schemas": [
- "urn:ietf:params:scim:api:messages:2.0:ListResponse"
], - "Resources": [
- {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:ResourceType"
], - "id": "User",
- "name": "Users",
- "description": "User Account",
- "schema": "urn:ietf:params:scim:schemas:core:2.0:User",
- "schemaExtensions": [ ],
- "meta": {
- "resourceType": "ResourceType"
}
}, - {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:ResourceType"
], - "id": "Group",
- "name": "Groups",
- "description": "Group",
- "schema": "urn:ietf:params:scim:schemas:core:2.0:User",
- "schemaExtensions": [ ],
- "meta": {
- "resourceType": "ResourceType"
}
}
]
}
This endpoint retrieves the details of a specific resource type, in this case, the "User" resource type.
No request body is required for this endpoint.
The response for this request is in the form of a JSON schema, with the following structure:
schemas
(array): An array of strings representing the schemas supported by the resource type.
id
(string): The unique identifier for the resource type.
name
(string): The name of the resource type.
endpoint
(string): The endpoint for the resource type.
description
(string): A description of the resource type.
schema
(string): The schema associated with the resource type.
schemaExtensions
(array): An array of schema extensions for the resource type.
meta
(object): An object containing metadata for the resource type, including the location and resource type.
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:ResourceType"
],
"id": "User",
"name": "Users",
"endpoint": "https://mycompany.stensul.com/scim/v2/Users",
"description": "User Account",
"schema": "urn:ietf:params:scim:schemas:core:2.0:User",
"schemaExtensions": [],
"meta": {
"location": "https://mycompany.stensul.com/scim/v2/ResourceTypes/User",
"resourceType": "ResourceType"
}
}
Content-Type | string Example: application/scim+json |
{- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:ResourceType"
], - "id": "User",
- "name": "Users",
- "description": "User Account",
- "schema": "urn:ietf:params:scim:schemas:core:2.0:User",
- "schemaExtensions": [ ],
- "meta": {
- "resourceType": "ResourceType"
}
}
This endpoint retrieves the details of a specific resource type, in this case, the "Group" resource type.
No request body is required for this endpoint.
The response for this request is in the form of a JSON schema, with the following structure:
schemas
(array): An array of strings representing the schemas supported by the resource type.
id
(string): The unique identifier for the resource type.
name
(string): The name of the resource type.
endpoint
(string): The endpoint for the resource type.
description
(string): A description of the resource type.
schema
(string): The schema associated with the resource type.
schemaExtensions
(array): An array of schema extensions for the resource type.
meta
(object): An object containing metadata for the resource type, including the location and resource type.
Example response:
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:ResourceType"
],
"id": "Group",
"name": "Groups",
"endpoint": "https://mycompany.stensul.com/scim/v2/Groups",
"description": "Group",
"schema": "urn:ietf:params:scim:schemas:core:2.0:User",
"schemaExtensions": [],
"meta": {
"location": "https://mycompany.stensul.com/scim/v2/ResourceTypes/Group",
"resourceType": "ResourceType"
}
}
string |
{- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:ResourceType"
], - "id": "Group",
- "name": "Groups",
- "description": "Group",
- "schema": "urn:ietf:params:scim:schemas:core:2.0:Group",
- "schemaExtensions": [ ],
- "meta": {
- "resourceType": "ResourceType"
}
}
This endpoint retrieves the service provider configuration.
The response is in JSON format and follows the SCIM (System for Cross-domain Identity Management) schema. It includes the following fields:
schemas
(array): An array of strings representing the supported schemas.
patch
(object): Indicates if the PATCH operation is supported.
bulk
(object): Indicates if the bulk operations are supported, along with the maximum payload size and maximum operations.
filter
(object): Indicates if the filter operation is supported, along with the maximum results.
changePassword
(object): Indicates if the change password operation is supported.
sort
(object): Indicates if the sort operation is supported.
etag
(object): Indicates if the etag operation is supported.
authenticationSchemes
(array): An array of authentication scheme objects, each containing the name, description, specUri, documentationUri, type, and primary flag.
meta
(object): Contains metadata such as location, resource type, created timestamp, last modified timestamp, and version.
Example response:
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig"
],
"patch": {
"supported": true
},
"bulk": {
"supported": true,
"maxPayloadSize": 1048576,
"maxOperations": 10
},
"filter": {
"supported": true,
"maxResults": 100
},
"changePassword": {
"supported": false
},
"sort": {
"supported": true
},
"etag": {
"supported": true
},
"authenticationSchemes": [
{
"name": "OAuth Bearer Token",
"description": "Authentication scheme using the OAuth Bearer Token Standard",
"specUri": "https://www.rfc-editor.org/info/rfc6750",
"documentationUri": "https://www.rfc-editor.org/rfc/rfc6750.html",
"type": "oauthbearertoken",
"primary": true
}
],
"meta": {
"location": "https://mycompany.stensul.com/scim/v2/ServiceProviderConfig",
"resourceType": "ServiceProviderConfig",
"created": "2024-06-12T21:19:57+00:00",
"lastModified": "2024-06-10T19:33:18+00:00",
"version": "W/\"d43b06bc97a786ab2c69f688f643d1b9bbc5e44e\""
}
}
Content-Type | string Example: application/scim+json |
{- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig"
], - "patch": {
- "supported": true
}, - "bulk": {
- "supported": true,
- "maxPayloadSize": 1048576,
- "maxOperations": 10
}, - "filter": {
- "supported": true,
- "maxResults": 100
}, - "changePassword": {
- "supported": false
}, - "sort": {
- "supported": true
}, - "etag": {
- "supported": true
}, - "authenticationSchemes": [
- {
- "name": "OAuth Bearer Token",
- "description": "Authentication scheme using the OAuth Bearer Token Standard",
- "type": "oauthbearertoken",
- "primary": true
}
], - "meta": {
- "resourceType": "ServiceProviderConfig",
- "created": "2024-06-12T21:19:57+00:00",
- "lastModified": "2024-06-10T19:33:18+00:00",
- "version": "W/\"d43b06bc97a786ab2c69f688f643d1b9bbc5e44e\""
}
}
This endpoint is used to perform bulk operations on SCIM resources.
schemas
(array of strings, required): An array of strings indicating the names of the SCIM schemas supported.
method
(string, required) - The method for the operation.
bulkId
(string, optional) - The ID for the bulk operation.
path
(string) - The path for the operation.
data
(object, required) - The data for the operation.
schemas
(array, required) - An array of strings.
userName
(string, required) - The username for the operation.
name
(object) - The name object.
givenName
(string) - The given name.
familyName
(string) - The family name.
active
(boolean) - The status of the operation.
groups
(array) - An array of groups that the user belongs to.
value
(string) - The id of the group.entitlements
(array, required): An array of library permissions the user has access to.
value
(string, required): The name of the permission.The request body should be in raw format with the following payload:
{
"schemas": [""],
"Operations": [
{
"method": "",
"bulkId": "",
"path": "",
"data": {
"schemas": [""],
"userName": "",
"name": {
"givenName": "",
"familyName": ""
},
"active": true,
"groups": [
{
"value": ""
}
],
"entitlements": [
{
"value": ""
}
]
}
}
]
}
The response is in JSON format with the following schema:
schemas
(array) - An array of strings.
location
(string) - The location of the operation.
method
(string) - The method for the operation.
bulkId
(string) - The ID for the bulk operation.
status
(integer) - The status of the operation.
{
"schemas": ["string"],
"Operations": [
{
"location": "string",
"method": "string",
"bulkId": "string",
"status": integer
}
]
}
Content-Type | string Example: application/scim+json |
{- "schemas": [
- "urn:ietf:params:scim:api:messages:2.0:BulkRequest"
], - "Operations": [
- {
- "method": "POST",
- "bulkId": "bulk-id",
- "path": "/Users",
- "data": {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
], - "userName": "example@stensul.com",
- "name": {
- "givenName": "John",
- "familyName": "Doe"
}, - "active": true,
- "groups": [
- {
- "value": "6176ca93290d332c4c35f66f"
}
], - "entitlements": [
- {
- "value": "access_library_my_library1"
}
]
}
}, - {
- "method": "POST",
- "bulkId": "bulk-id",
- "path": "/Users",
- "data": {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
], - "userName": "alice@stensul.com",
- "name": {
- "givenName": "Alice",
- "familyName": "Smith"
}, - "active": true,
- "groups": [
- {
- "value": "6176ca93290d332c4c35f66f"
}
], - "entitlements": [
- {
- "value": "access_library_my_library2"
}
]
}
}, - {
- "method": "PUT",
- "bulkId": "bulk-id",
- "path": "/Users/{userId}",
- "data": {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:User"
], - "userName": "bob@stensul.com",
- "name": {
- "givenName": "Bob",
- "familyName": "Smith"
}, - "groups": [
- {
- "value": "6176ca93290d332c4c35f66f"
}
], - "entitlements": [
- {
- "value": "access_library_my_library1"
}
]
}
}
]
}
{- "schemas": [
- "urn:ietf:params:scim:api:messages:2.0:BulkResponse"
], - "Operations": [
- {
- "method": "POST",
- "bulkId": "bulk-id",
- "status": 201
}, - {
- "method": "POST",
- "bulkId": "bulk-id",
- "status": 409,
- "response": {
- "schemas": [
- "urn:ietf:params:scim:api:messages:2.0:Error"
], - "detail": "Duplicate user: alice@stensul.com",
- "status": 409,
- "scimType": "uniqueness"
}
}, - {
- "method": "PUT",
- "bulkId": "bulk-id",
- "status": 200
}
]
}