Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Nov 9, 2026

Integrating a Contact Centre or External System

The Customer Service Management (CSM) APIs allow you to create requests from contact-centre interactions, make existing Jira work items visible in a Customer Experience, and enrich requests with transcripts, agent notes, and follow-up detail.

Customer service agents work primarily in their external system (for example, a telephony platform, IVR, voice bot, CRM, or contact-centre suite) and the following APIs are designed for integration scenarios where requests need to be escalated to CSM for further follow up.

Overview

Request intake APIs provide synchronous operations for:

  • Request creation: Create a CSM request from an external interaction such as a call, callback, or bot session
  • Existing work items: Make a Jira work item visible to its reporter in a Customer Experience
  • Case enrichment: Add call transcripts, agent notes, and structured follow-up detail as comments
  • Customer association: Attach the end customer to the request as the reporter by email address
  • Channel classification: Record the channel an interaction arrived on, such as voice or messaging

These operations are synchronous, so there is no task to poll. Creating a request returns the new issue identifiers. Raising an existing work item returns the URL for the request in the support site.

The external intake endpoint uses the default form configured for the Customer Experience. Client-supplied form selection is not part of this integration model.

Choose the API for your use case

Starting pointAPI to use
You need to create a new request from an external interaction.POST /api/v1/request/form/external
You already have a Jira work item and want its reporter to see it in a Customer Experience.POST /api/v1/helpcenter/{helpCenterId}/issue/{issueIdOrKey}/raise

Available Request Intake APIs

Request Operations

1. POST /api/v1/request/form/external - Create a Request from an External System

Creates a request in CSM from an external interaction, using the default form configured for the Customer Experience. Optionally associates the end customer with the request through their email address, and records the channel the interaction arrived on.

Use Case: Open a case automatically when a call, IVR selection, or bot session needs tracking and follow-up in CSM.

Form used: Default form for the Customer Experience

Returns: 200 OK with the created issue identifiers

2. POST /api/v1/request/form/helpcenter/{helpCenterId}/issue/{issueIdOrKey}/comment - Add a Comment to a Request

Adds a comment to a request that has already been created. Use this API to attach content that arrived too late for the original creation call, and to control whether that content is visible to the customer.

Use Case: Append a call transcript, agent wrap-up notes, or a post-call analysis summary to a case after the interaction ends.

Visibility: Internal by default, or customer-visible when explicitly set

Returns: 200 OK with the created comment

3. POST /api/v1/helpcenter/{helpCenterId}/issue/{issueIdOrKey}/raise - Raise an existing Jira work item

Makes an existing Jira work item visible to its reporter in the selected Customer Experience. It attaches and submits the Customer Experience's default form using the work item's Summary and Description. The work item's existing reporter is used; this operation does not accept reporterEmail.

Use case: Your integration already creates work items in Jira, and you want customers to see those work items in your CSM support site.

Prerequisites:

  • The caller must be a CSM agent for the work item's project, have EDIT_ISSUES permission for the work item, and be able to view the Customer Experience.
  • The Customer Experience must have a default form. The work item's existing values must satisfy form submission validation.
  • The work item must not already have an attached form; otherwise, the API returns 409 Conflict.
  • The access token must have the write:csm-request:jira-service-management scope.
  • Include X-ExperimentalApi: opt-in on the request because this API is experimental.

Returns: 200 OK with supportSiteRequestUrl, a link to the work item in the Customer Experience's support site.

Key Concepts

Base URL

All request intake calls use the following base URL, with the Cloud ID of the target site:

1
2
https://api.atlassian.com/jsm/csm/cloudid/{cloudId}

Authentication

Third-party integrations must authenticate with an Atlassian service account using OAuth 2.0 client credentials (2LO). This is the supported method. Do not build against user session authentication or a personal account's credentials.

Create an Atlassian service account for the integration. The service account must have the Customer Service Management User role, and its credentials must:

  • Use the OAuth 2.0 authentication type
  • Have the write:csm-request:jira-service-management scope associated with them

Exchange the client credentials for a bearer token, then send that token on every request. There is no audience or scope parameter in this exchange; scopes come from the service account configuration.

Identifiers

IdentifierWhere it is usedDescription
cloudIdBase URLIdentifies the target Atlassian site.
helpCenterIdCreate request body, raise path, and comment pathIdentifies the Customer Experience the request belongs to.
id / keyComment pathReturned when the request is created. Store one of these against your source-system record.
issueIdOrKeyRaise pathThe existing Jira work item's numeric ID or current key, such as 10021 or CSM-1.

Creator and Reporter Behaviour

When creating a new request with POST /api/v1/request/form/external, these roles are separate:

  • Issue creator: The authenticated caller, which is the service account used by the integration
  • Issue reporter: The customer identified by reporterEmail, when provided. CSM creates or retrieves the customer account
  • No reporter email: The issue is still created, but no separate customer reporter is attached through this field

When raising an existing Jira work item, the API uses the work item's existing reporter rather than creating or associating a customer through reporterEmail.

Intake Channels

When creating a new request, use intakeChannel to classify where an interaction came from. Send VOICE for telephony and contact-centre integrations. If omitted, the value defaults to EXTERNAL for backward compatibility.

Accepted values are EMAIL, AI_AGENT, SUPPORT_SITE, EXTERNAL, EMBED, VOICE, SMS, SDK, and MESSAGING. The sub-channels EMBED_CHAT, SUPPORT_SITE_CHAT, and WHATSAPP are also accepted.

Basic Usage Example

Step 1: Request an Access Token

Exchange the service account's client credentials for a bearer token:

1
2
3
4
5
6
7
8
curl -X POST https://auth.atlassian.com/oauth/token \
  -H 'Content-Type: application/json' \
  -d '{
    "grant_type": "client_credentials",
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET"
  }'

Step 2: Create the Request

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
curl -X POST https://api.atlassian.com/jsm/csm/cloudid/YOUR_CLOUD_ID/api/v1/request/form/external \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "helpCenterId": "YOUR_CUSTOMER_EXPERIENCE_ID",
    "origin": "Salesforce Service Cloud",
    "summary": "Customer requested help with account access",
    "description": "Customer contacted the support line after failing multi-factor authentication. Agent verified identity and opened a case for follow-up.",
    "reporterEmail": "customer@example.com",
    "intakeChannel": "VOICE",
    "metadata": {
      "agentId": "agent-314",
      "contactId": "contact-8291",
      "queue": "priority-support"
    }
  }'

Response:

1
2
3
4
5
6
7
{
  "id": "10021",
  "key": "CSM-1",
  "helpCenterId": "YOUR_CUSTOMER_EXPERIENCE_ID",
  "link": "https://example.atlassian.net/helpcenter/12345/user/requests/CSM-1"
}

Step 3: Add the Transcript as a Comment

Use the key returned in step 2. The comment body is Atlassian Document Format (ADF). Comments are internal unless public is set to true.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
curl -X POST https://api.atlassian.com/jsm/csm/cloudid/YOUR_CLOUD_ID/api/v1/request/form/helpcenter/YOUR_CUSTOMER_EXPERIENCE_ID/issue/YOUR_ISSUE_KEY/comment \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "public": false,
    "body": {
      "type": "doc",
      "version": 1,
      "content": [
        {
          "type": "paragraph",
          "content": [
            {
              "type": "text",
              "text": "Call transcript summary: customer could not access the portal after password reset. Identity verified. Escalated to account administration."
            }
          ]
        }
      ]
    }
  }'

Raise an existing Jira work item

Move the work item to a CSM project if it is not already in one. Then use its ID or current key and the ID of the Customer Experience where its reporter should see it. Use the access token obtained in step 1 of the basic usage example. This request has no body.

1
2
3
4
5
curl -X POST https://api.atlassian.com/jsm/csm/cloudid/YOUR_CLOUD_ID/api/v1/helpcenter/YOUR_CUSTOMER_EXPERIENCE_ID/issue/YOUR_ISSUE_KEY/raise \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" \
  -H "X-ExperimentalApi: opt-in"

Response:

1
2
3
4
{
  "supportSiteRequestUrl": "https://example.atlassian.net/helpcenter/acme-support/user/requests/CSM-1"
}

Store supportSiteRequestUrl with the existing issue key in your external system so you can link the reporter to the request.

Common Use Cases

1. Create a Case from a Call or IVR Selection

Open a case when an interaction needs tracking beyond the call itself.

  1. Capture the caller's identity, queue, and reason for contact in your telephony platform
  2. Call the external intake API with intakeChannel set to VOICE
  3. Store the returned issue key against the interaction record in your platform

2. Enrich a Case with Post-Call Content

Keep the creation call small and add detail once the interaction completes.

  1. Create the request at the start of the interaction with a concise summary
  2. Wait for the transcript or recording analysis to complete
  3. Add the transcript as an internal comment using the stored issue key

3. Escalate from a Bot to a Human Agent

Hand off an automated session that could not resolve the customer's problem.

  1. Create the request when the bot determines escalation is required
  2. Set reporterEmail so the case is attached to the customer
  3. Add the bot session transcript as a comment so the agent has full context

4. Integrate a CRM-Originated Interaction

Create CSM cases from interactions that begin in your CRM.

  1. Trigger on the CRM event that represents a new interaction
  2. Map CRM fields to summary, description, and flat metadata values
  3. Use a consistent origin value so CSM traffic from this system is identifiable

Best Practices

1. Payload Design

For new requests created with the external intake API:

  • Send a concise summary and reserve long transcript content for comments
  • Keep metadata flat, minimal, and operationally useful
  • Use a consistent origin value for each external system
  • Set intakeChannel explicitly rather than relying on the default

2. Error Handling

  • Validate email format and metadata structure before sending
  • Treat 400 and 403 as configuration or data problems, not transient faults
  • Retry 5xx responses carefully, with exponential backoff
  • Capture the x-trace-id response header on every non-2xx response and log it with your own correlation ID

3. Correlation and Duplicate Prevention

  • Store the issue key in your external platform for future updates, whether it was returned by request creation or supplied to the raise API
  • For request creation, record a "created" flag against the source-system record before retrying
  • The external intake API has no idempotency key, so retrying request creation after a timeout can create a duplicate request
  • If a work item already exists, use the raise API with its existing ID or key. If it returns 409 Conflict, stop retrying and check the work item in the Customer Experience's support site. After a timeout, the earlier call may already have submitted the form; a conflict does not confirm that the Customer Experience association completed

4. Authentication and Credentials

  • Use a dedicated service account for each integration rather than sharing one
  • Store client credentials in a secrets manager and grant least-privilege access to them
  • Do not commit credentials or access tokens to source control, and do not write them to logs
  • Request a fresh access token when the current one expires, and handle 401 by re-authenticating

5. Comment Visibility

  • Set visibility intentionally on every comment
  • Default to internal for raw transcripts and agent notes
  • Use customer-visible comments only for content written for the customer

6. Monitoring and Logging

  • Log the issue key and your own correlation ID for every created request
  • Track creation success and failure rates by origin
  • Set up alerts for sustained failure rates and for authentication failures

Troubleshooting

Issue: 500 with error key barista.form.processing.validation.error

Solution: No default form is configured for the Customer Experience. This is a configuration issue rather than a temporary fault, so the request will keep failing until a default form is in place. Confirm the default form, then retry. Match on this error key to handle the case specifically rather than treating it as a transient error.

Issue: 403 Forbidden on every request

Solution:

  • Confirm the service account has the Customer Service Management User role
  • Confirm the credentials carry the write:csm-request:jira-service-management scope
  • For the raise API, also confirm the service account is a CSM agent for the work item's project, has EDIT_ISSUES permission for the work item, and can view the Customer Experience

Issue: 400 Bad Request when raising an existing work item

Solution: Check the Customer Experience ID and issue ID or key. Confirm that the work item's existing values satisfy the default form's submission validation.

Issue: 404 Not Found when raising an existing work item

Solution: Confirm that the work item and Customer Experience exist and that a default form is configured for the Customer Experience.

Issue: 409 Conflict when raising an existing work item

Solution: The work item already has a submitted form. Do not retry the raise call: it will continue to return 409 Conflict while the submitted form exists. If an earlier call timed out, it may have submitted the form before the timeout, but this does not confirm that the Customer Experience association completed.

Check the work item in the Customer Experience's support site. Request URLs use the path /helpcenter/{slug}/user/requests/{issueKey} on that support site. Use the Customer Experience's slug and the work item's current key. A repeat raise call does not return supportSiteRequestUrl for an existing submitted form. If the work item is not visible, contact Atlassian Support with the x-trace-id from the failed call.

Issue: 400 Bad Request when setting a customer

Solution: Validate reporterEmail before sending. Invalid email values cause the request to be rejected. If the customer's email is unavailable, omit the field; the request is still created without a customer reporter.

Issue: 400 Bad Request when sending metadata

Solution: Only primitive JSON values are supported in metadata. Flatten nested objects and arrays into individual keys before sending.

Issue: Duplicate requests created for one interaction

Solution: A retry of the external intake creation call after a timeout can create a second request, because it has no idempotency key. Record a "created" flag and the returned issue key against the source-system record, and check it before retrying.

Issue: Requests are created but no customer is attached

Solution: For new requests created with the external intake API, the customer is attached through reporterEmail only. The service account is always the creator, and this is expected behaviour. Supply reporterEmail if the case should be associated with the end customer. For existing work items raised with the raise API, check the work item's existing reporter.

Need Help?

For support with request intake APIs:

  • Review the API documentation
  • Check the error key and message in the response body for the specific failure
  • Contact Atlassian Support with the x-trace-id from the failing response and a sample payload

Rate this page: