You need to sign in to do that
Don't have an account?
Alfia Quadri 11
How to use external service for Authorization Bearer
I am trying to connect to Intercom from Salesforce using External services.
https://developers.intercom.com/intercom-api-reference/reference/search-for-contacts
This is what the specification says. And I have the token and tried this on Postman and it works fine
$ curl https://api.intercom.io/contacts \ -X POST \
-H 'Authorization:Bearer <Your access token>' \
-H 'Accept:application/json'
-H 'Content-Type: application/json' -d
Now in External service I provided the JSON (see below).
Now where do I provide the auth code? I need to create a flow, use this external service and update a field from the values I get in response.
Please help me.
{
"openapi": "3.0.1",
"info": {
"title": "SerachContactIntercom",
"description": "Serach Intercom Active Contacts",
"version": "0.1"
},
"servers": [
{
"url": "https://api.intercom.io"
}
],
"security": [
{
"bearerAuth": []
}
],
"paths": {
"/contacts/search/": {
"post": {
"description": "Auto generated using Swagger Inspector",
"parameters": [
{
"name": "Intercom-Version",
"in": "header",
"required": false,
"style": "simple",
"explode": false,
"schema": {
"type": "string"
},
"example": "2.6"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/contacts_search_body"
},
"examples": {
"0": {
"value": "{\n\"query\": {\n \"field\": \"last_seen_at\",\n \"operator\": \">\",\n \"value\": \"1646149510\"\n }\n}"
}
}
}
}
},
"responses": {
"200": {
"description": "Auto generated using Swagger Inspector"
}
},
"servers": [
{
"url": "https://api.intercom.io"
}
]
},
"servers": [
{
"url": "https://api.intercom.io"
}
]
}
},
"components": {
"schemas": {
"contactssearch_query": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"value": {
"type": "string"
},
"operator": {
"type": "string"
}
}
},
"contacts_search_body": {
"type": "object",
"properties": {
"query": {
"$ref": "#/components/schemas/contactssearch_query"
}
}
}
},
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
}
}
}
}
https://developers.intercom.com/intercom-api-reference/reference/search-for-contacts
This is what the specification says. And I have the token and tried this on Postman and it works fine
$ curl https://api.intercom.io/contacts \ -X POST \
-H 'Authorization:Bearer <Your access token>' \
-H 'Accept:application/json'
-H 'Content-Type: application/json' -d
Now in External service I provided the JSON (see below).
Now where do I provide the auth code? I need to create a flow, use this external service and update a field from the values I get in response.
Please help me.
{
"openapi": "3.0.1",
"info": {
"title": "SerachContactIntercom",
"description": "Serach Intercom Active Contacts",
"version": "0.1"
},
"servers": [
{
"url": "https://api.intercom.io"
}
],
"security": [
{
"bearerAuth": []
}
],
"paths": {
"/contacts/search/": {
"post": {
"description": "Auto generated using Swagger Inspector",
"parameters": [
{
"name": "Intercom-Version",
"in": "header",
"required": false,
"style": "simple",
"explode": false,
"schema": {
"type": "string"
},
"example": "2.6"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/contacts_search_body"
},
"examples": {
"0": {
"value": "{\n\"query\": {\n \"field\": \"last_seen_at\",\n \"operator\": \">\",\n \"value\": \"1646149510\"\n }\n}"
}
}
}
}
},
"responses": {
"200": {
"description": "Auto generated using Swagger Inspector"
}
},
"servers": [
{
"url": "https://api.intercom.io"
}
]
},
"servers": [
{
"url": "https://api.intercom.io"
}
]
}
},
"components": {
"schemas": {
"contactssearch_query": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"value": {
"type": "string"
},
"operator": {
"type": "string"
}
}
},
"contacts_search_body": {
"type": "object",
"properties": {
"query": {
"$ref": "#/components/schemas/contactssearch_query"
}
}
}
},
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
}
}
}
}