Introduction
Authentication
Making requests
AI Staff
Company data
Enrichment
Leadgeneration
General
Getresult
Balance
Statistics
Tariffs
Echo
Introduction
Authentication
Making requests
AI Staff
Company data
Enrichment
Leadgeneration
General
Getresult
Balance
Statistics
Tariffs
Echo
Introduction
You can interact with the C-MES API via HTTP requests from any programming language using any commonly used libraries. The API interface is free and available for all C-MES accounts. Payment is only made for the actual usage of services consumed, which is deducted from the prepaid amount according to the tariffs.
https://api.c-mes.tech
v1
https://api.c-mes.tech/v1/{ method }
Authentication
API Keys
The C-MES API uses API keys for authentication. You can create API keys in your personal account after registering on the site. Each API key can be assigned to a project for subsequent request accounting and analysis. The number of API keys and Projects is unlimited.
Remember that your API key is secret! Do not share it with others or expose it in any client code (browsers, applications). Production requests should be routed through your own internal server, where your API key can be securely loaded from an environment variable or key management service.
All API requests must include your API key in the Authorization HTTP header as follows:
Authorization: Bearer $API_KEY
curl https://api.c-mes.tech/v1/info/balance \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
Making requests
You can paste the command below into your terminal to execute your first API request. Make sure to replace $API_KEY with your secret API key.
curl https://api.c-mes.tech/v1/echo \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"Content": "info@c-mes.co.uk",
"LanguageCode": "en",
"Asynch": false
}'
This request calls the echo method (/v1/echo). You should receive a response that looks similar to the following:
{
"RequestType": "POST",
"ApiKey": "apikey-55*******************************91",
"Content-Type": "application/json",
"Method": "/v1/echo",
"Content-Lenght": 88,
"Status": "The request was successfully completed",
"IP": "xxx.xxx.xxx.xxx",
"RequestBody": "{
\"Content\": \"info@c-mes.co.uk\",
\"LanguageCode\": \"en\",
\"Asynch\": false
}"
}
Now that you have generated your first request, let's break down the response object. You will receive a JSON structure containing all the information you sent to the server. This allows you to verify the correct operation of your application using the C-MES API.
Company data (CompanyData object)
Represents the response of lead generation or enrichment returned by API methods based on the provided input data.
Returns:
The full legal name of the company as it appears in the analyzed transmitted materials.
Link to the company logo.
Country.
State.
Postal code.
City.
Street and house number, office, etc.
Address continuation.
Phone numbers.
Phone number in international format: + Country code and telephone number.
True if it's the primary phone number of the company.
Email addresses.
E-mail address.
True if this is the primary company email address.
The main website domain, without repetitions or 'http://' or 'https://'.
Host name to a site page, not including http:// or https://.
Link to a site page, not including http:// or https://.
Language of communication of the company.
Contacts.
Contact's first and last name.
Contact's job title.
Contact's email.
Contact's phone number.
Types of activity, services, goods, etc.
Assessment of the company size based on the information received.
Technologies on which the site is based.
Detailed recommendations for forming a commercial proposal for this customer.
Estimate of the possible sales amount to this client in the next 12 months.
Estimate in percentage of the probability of successfully concluding a contract.
Links found on the page, website.
Host name to a site page, not including http:// or https://.
Link to a site page, not including http:// or https://.
Classify the link according to its contents.
Links found on the page that lead to the company's pages on social networks.
Host name to a site page, not including http:// or https://.
Link to a site page, not including http:// or https://.
Enrichment
POST https://api.c-mes.tech/v1/enrichment
The enrichment method allows you to gather additional data about potential customer or supplier based on minimal information, such as an email address, company website, and email correspondence containing internet links to the company's site.
With its help, you can obtain comprehensive information about the company, including its industry, size, location, and contact details. This is very important, as enriched leads help better segment the audience, optimize marketing campaigns, and increase sales efficiency.
When providing information about the products and services you offer to the method, it can provide useful recommendations as well as assess the potential and likelihood of a deal. This enables your business to more accurately identify which leads hold the greatest value and focus on the most promising opportunities.
Request body:
Any string data containing a link to the enriched lead. This can include a web link, email address, body of an email with the interested company's return email address, and so on.
Specify this if you want to exclude mentioning these companies in lead enrichment results.
You can specify in this parameter the list and specifications of the products and services offered by your company for assessing the potential of the deal (probability, amount) and generating recommendations for further engagement with the company.
The language code in which the enrichment results should be presented. If the materials of the enriched lead are provided in another language, they will be translated into the specified language. The default is English (en).
Lead enrichment mode ('true' - asynchronous mode, 'false' - synchronous mode). In synchronous mode, the enrichment result is immediately returned to the client in the response, while in asynchronous mode, the client receives a request ID, which can later be used to obtain the result of the request execution or its completion percentage. It is recommended to use asynchronous mode if a long request execution time is anticipated. The default is 'false'.
Returns
The request returns a CompanyData object: a JSON structure with the company data obtained from the enrichment results.
curl https://api.c-mes.tech/v1/enrichment \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"Content": "info@c-mes.co.uk",
"ProductsAndServices": "Our company provides ready-made solutions for Odoo ERP and 1C:ERP WE, \
implements them, makes modifications, and offers support. We also provide consulting services \
in the field of business management.",
"LanguageCode": "en",
"Asynch": false
}'
{
"CompanyName": "C-MES Solutions Ltd.",
"LogoLink": "https://c-mes.co.uk/assets/images/logotop.png",
"Address": {
"Country": "United Kingdom",
"State": "England",
"ZIP": "W1U6TU",
"City": "London",
"Street1": "120 Baker Street",
"Street2": ""
},
"Phones": [
{
"PhoneNumber": "+44 208 068 4673",
"Primary": true
}
],
"Emails": [
{
"Email": "info@c-mes.co.uk",
"Primary": true
}
],
"Webs": [
{
"Host": "c-mes.co.uk",
"Link": "/"
}
],
"Language": "en",
"Contacts": [],
"Business": "C-MES Solutions Ltd. develops, publishes, and provides integrated business tools and innovative know-how for ERP-class systems including Odoo ERP and 1C: ERP. They offer advanced enterprise and production management methodologies, ERP implementation, system adaptation, training, and ongoing support.",
"CompanySize": "Medium-sized enterprise, possibly ranging from 50 to 200 employees.",
"Technologies": [
"odoo",
"1C:ERP"
],
"Recommendations": "Focus on offering ERP solutions, production management software, and consulting services related to the integration of these systems. Highlight the unique customization and support services that c-mes can benefit from.",
"EstimatedBudget": 50000,
"ProbabilityOfSuccess": 70,
"AdditionalLinks": [
{
"Host": "c-mes.co.uk",
"Link": "/about/",
"Description": "About"
},
{
"Host": "c-mes.co.uk",
"Link": "/contacts/",
"Description": "Contacts"
},
{
"Host": "c-mes.co.uk",
"Link": "/products/",
"Description": "ProductsAndServices"
},
{
"Host": "c-mes.co.uk",
"Link": "/industries/",
"Description": "Etc"
},
{
"Host": "c-mes.co.uk",
"Link": "/legal/",
"Description": "Legal"
}
],
"SocialNetsLinks": [
{
"Host": "facebook.com",
"Link": "/profile.php?id=100064998730941"
},
{
"Host": "linkedin.com",
"Link": "/company/104615881"
},
{
"Host": "instagram.com",
"Link": "/cmessolutionsltd/"
},
{
"Host": "x.com",
"Link": "/c_mes_solutions"
}
]
}
{
"ID" = "57bb5a9a-e115-4a0e-a15d-85527b82a344"
}
Leadgeneration
POST https://api.c-mes.tech/v1/leadgeneration
The lead generation method is a process where your arbitrary queries are used to search for information about the companies of interest on the internet.
With this method, you can quickly gather data about potential clients, their products, services, and market activity.
Lead generation allows you to find companies that may be interested in your offerings, as well as analyze their needs and preferences. The leads are provided to the client in an enriched form after generation.
Request body:
An arbitrary query, as if you were searching for companies on the internet through search engines. The more precise the query, the more complete and relevant the generated leads will be.
Specify this if you want to exclude mentioning these companies in lead enrichment results.
You can specify in this parameter the list and specifications of the products and services offered by your company for assessing the potential of the deal (probability, amount) and generating recommendations for further engagement with the company.
Limit on the maximum number of leads generated simultaneously. The default is 10.
The language code in which the enrichment results should be presented. If the materials of the enriched lead are provided in another language, they will be translated into the specified language. The default is English (en).
Lead generation mode ('true' - asynchronous mode, 'false' - synchronous mode). In synchronous mode, the enrichment result is immediately returned to the client in the response, while in asynchronous mode, the client receives a request ID, which can later be used to obtain the result of the request execution or its completion percentage. It is recommended to use asynchronous mode if a long request execution time is anticipated. The default is 'true'.
Returns
The request returns an array of CompanyData objects: a JSON structure with the company data obtained from the generated and enrichment results.
curl https://api.c-mes.tech/v1/leadgeneration \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"Content": "Pipe manufacturers, USA",
"ProductsAndServices": "Our company provides ready-made solutions for Odoo ERP and 1C:ERP WE, \
implements them, makes modifications, and offers support. We also provide consulting services \
in the field of business management.",
"MaxCount": 10,
"LanguageCode": "en",
"Asynch": true
}'
[
{
"CompanyName": "CompanyName 1",
"LogoLink": ".................",
"Address": {
"Country": "........",
"State": "........",
"ZIP": "....",
"City": "......",
"Street1": "",
"Street2": ""
},
----------------------------------------
"EstimatedBudget": 50000,
"ProbabilityOfSuccess": 60
}
{
"CompanyName": "CompanyName 2",
"LogoLink": ".................",
"Address": {
"Country": "........",
"State": "........",
"ZIP": "....",
"City": "......",
"Street1": "",
"Street2": ""
},
----------------------------------------
{
"CompanyName": "CompanyName 3",
"LogoLink": ".................",
"Address": {
"Country": "........",
"State": "........",
"ZIP": "....",
"City": "......",
"Street1": "",
"Street2": ""
},
----------------------------------------
MaxCount
----------------------------------------
]
{
"ID" = "57bb5a9a-e115-4a0e-a15d-85527b82a344"
}
Getresult
POST https://api.c-mes.tech/v1/getresult
Returns the result of the previously sent request or the current % of completion.
Request body:
A unique request identifier previously returned by methods using asynchronous call mode.
Returns
Returns a JSON object - the result of the previously sent request or the current % of completion.
curl https://api.c-mes.tech/v1/leadgeneration \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"ID" = "57bb5a9a-e115-4a0e-a15d-85527b82a344"
}'
[
{
"CompanyName": "CompanyName 1",
"LogoLink": ".................",
"Address": {
"Country": "........",
"State": "........",
"ZIP": "....",
"City": "......",
"Street1": "",
"Street2": ""
},
----------------------------------------
"EstimatedBudget": 50000,
"ProbabilityOfSuccess": 60
}
{
"CompanyName": "CompanyName 2",
"LogoLink": ".................",
"Address": {
"Country": "........",
"State": "........",
"ZIP": "....",
"City": "......",
"Street1": "",
"Street2": ""
},
----------------------------------------
{
"CompanyName": "CompanyName 3",
"LogoLink": ".................",
"Address": {
"Country": "........",
"State": "........",
"ZIP": "....",
"City": "......",
"Street1": "",
"Street2": ""
},
----------------------------------------
MaxCount
----------------------------------------
]
{
"Status" = "Request in processing",
"Progress" = 85
}
Balance
GET https://api.c-mes.tech/v1/info/balance
Returns the current balance of the account.
Returns
Returns a JSON object:
Current balance amount.
Balance currency.
curl https://api.c-mes.tech/v1/info/balance \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
{
"Balance" = 25,
"Currency" = "GBP"
}
Statistics
POST https://api.c-mes.tech/v1/info/statistics
Returns API usage statistics in various dimensions for the specified period.
Request body:
Start date of the selection in ISO format.
End date of the selection in ISO format.
Grouping option: "Project", "Service". If the value is not specified or the value is "All," it returns all data - project, service, api_key.
Grouping option: "Day", "Month". If the value is not specified or the value is "All," it returns all records without grouping.
Returns
Returns a JSON object containing an array of records, each corresponding to one group of values:
Period of resource consumption records. If the grouping is "Day," it contains the start date of the day of consumption; if "Month," it contains the start date of the month of consumption. If "All," it contains the date and time of the request.
Total resource consumption for the selected period.
Currency.
Name of the service, in case the grouping is set to "Service" or "All."
Name of the project, in case the grouping is set to "Project" or "All."
Name of the ApiKey, in case the grouping is set to "All."
curl https://api.c-mes.tech/v1/info/statistics \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"start":"2024-11-01T17:04:56.094Z",
"end":"2024-11-30T17:04:56.094Z",
"type":"service",
"period":"day"
}'
[
{
"Period": "2024-11-05T00:00:00",
"Sum": 0.6,
"Currency": "GBP",
"Service": "/v1/enrichment"
}
]
Tariffs
GET https://api.c-mes.tech/v1/info/tariffs
Returns an array of current rates in currencies GBP, EUR, USD. Authentication is not required.
Returns
Returns a JSON object containing an array of records:
Name of the service.
Service description.
Pricing rules, cost determination.
Base price in GBP. The rate in other currencies is calculated based on it according to the current exchange rates in the system.
Price in Euros.
Price in Dollars.
curl https://api.c-mes.tech/v1/info/tariffs \
-H "Content-Type: application/json" \
[
{
"Method": "/v1/leadgeneration",
"Description": "Price per generated lead",
"PriceRules" : "",
"PriceGBP": 0.1,
"PriceEUR": 1.196988,
"PriceUSD": 1.340148
},
{
"Method": "/v1/enrichment",
"Description": "Price per successfully enriched lead",
"PriceRules" : "",
"PriceGBP": 0.1,
"PriceEUR": 1.196988,
"PriceUSD": 1.340148
}
]
Echo
POST https://api.c-mes.tech/v1/echo
GET https://api.c-mes.tech/v1/echo
Method for testing requests and checking the API functionality.
Request body: Any data.
Returns
Returns a JSON object:
Type of the transmitted request.
API key used for authorization.
Value of Content-Type sent in the request header.
Length of the request body.
Called request method.
The request was successfully completed
Client IP.
Request body sent to the server.
curl https://api.c-mes.tech/v1/echo \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"start":"2024-11-01T17:04:56.094Z",
"end":"2024-11-30T17:04:56.094Z",
"type":"service",
"period":"day"
}'
{
"RequestType": "POST",
"ApiKey": "apikey-5*****************91",
"Content-Type": "application/json",
"Method": "/v1/echo",
"Content-Lenght": 131,
"Status": "The request was successfully completed",
"IP": "xxx.xxx.xxx.xxx",
"RequestBody": "{\r\n \"start\": \"2024-11-01T17:04:56.094Z\",\r\n \"end\": \"2024-11-30T17:04:56.094Z\",\r\n \"type\": \"service\",\r\n \"period\": \"day\"\r\n}"
}
Server response codes
Code | Description |
---|---|
200 | OK |
202 | The request has been accepted, but its processing has not yet been completed |
401 | Authorization error |
402 | Not enough money |
403 | API Key is not valid |
405 | Error in request |
500 | Internal Server Error |
Introduction
Authentication
Making requests
AI Staff
Company data
Enrichment
Leadgeneration
General
Getresult
Balance
Statistics
Tariffs
Echo
Introduction
You can interact with the C-MES API via HTTP requests from any programming language using any commonly used libraries. The API interface is free and available for all C-MES accounts. Payment is only made for the actual usage of services consumed, which is deducted from the prepaid amount according to the tariffs.
https://api.c-mes.tech
v1
https://api.c-mes.tech/v1/{ method }
Authentication
API Keys
The C-MES API uses API keys for authentication. You can create API keys in your personal account after registering on the site. Each API key can be assigned to a project for subsequent request accounting and analysis. The number of API keys and Projects is unlimited.
Remember that your API key is secret! Do not share it with others or expose it in any client code (browsers, applications). Production requests should be routed through your own internal server, where your API key can be securely loaded from an environment variable or key management service.
All API requests must include your API key in the Authorization HTTP header as follows:
Authorization: Bearer $API_KEY
curl https://api.c-mes.tech/v1/info/balance \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
Making requests
You can paste the command below into your terminal to execute your first API request. Make sure to replace $API_KEY with your secret API key.
curl https://api.c-mes.tech/v1/echo \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"Content": "info@c-mes.co.uk",
"LanguageCode": "en",
"Asynch": false
}'
This request calls the echo method (/v1/echo). You should receive a response that looks similar to the following:
{
"RequestType": "POST",
"ApiKey": "apikey-55*******************************91",
"Content-Type": "application/json",
"Method": "/v1/echo",
"Content-Lenght": 88,
"Status": "The request was successfully completed",
"IP": "xxx.xxx.xxx.xxx",
"RequestBody": "{
\"Content\": \"info@c-mes.co.uk\",
\"LanguageCode\": \"en\",
\"Asynch\": false
}"
}
Now that you have generated your first request, let's break down the response object. You will receive a JSON structure containing all the information you sent to the server. This allows you to verify the correct operation of your application using the C-MES API.
Company data (CompanyData object)
Represents the response of lead generation or enrichment returned by API methods based on the provided input data.
Returns:
The full legal name of the company as it appears in the analyzed transmitted materials.
Link to the company logo.
Country.
State.
Postal code.
City.
Street and house number, office, etc.
Address continuation.
Phone numbers.
Phone number in international format: + Country code and telephone number.
True if it's the primary phone number of the company.
Email addresses.
E-mail address.
True if this is the primary company email address.
The main website domain, without repetitions or 'http://' or 'https://'.
Host name to a site page, not including http:// or https://.
Link to a site page, not including http:// or https://.
Language of communication of the company.
Contacts.
Contact's first and last name.
Contact's job title.
Contact's email.
Contact's phone number.
Types of activity, services, goods, etc.
Assessment of the company size based on the information received.
Technologies on which the site is based.
Detailed recommendations for forming a commercial proposal for this customer.
Estimate of the possible sales amount to this client in the next 12 months.
Estimate in percentage of the probability of successfully concluding a contract.
Links found on the page, website.
Host name to a site page, not including http:// or https://.
Link to a site page, not including http:// or https://.
Classify the link according to its contents.
Links found on the page that lead to the company's pages on social networks.
Host name to a site page, not including http:// or https://.
Link to a site page, not including http:// or https://.
Enrichment
POST https://api.c-mes.tech/v1/enrichment
The enrichment method allows you to gather additional data about potential customer or supplier based on minimal information, such as an email address, company website, and email correspondence containing internet links to the company's site.
With its help, you can obtain comprehensive information about the company, including its industry, size, location, and contact details. This is very important, as enriched leads help better segment the audience, optimize marketing campaigns, and increase sales efficiency.
When providing information about the products and services you offer to the method, it can provide useful recommendations as well as assess the potential and likelihood of a deal. This enables your business to more accurately identify which leads hold the greatest value and focus on the most promising opportunities.
Request body:
Any string data containing a link to the enriched lead. This can include a web link, email address, body of an email with the interested company's return email address, and so on.
Specify this if you want to exclude mentioning these companies in lead enrichment results.
You can specify in this parameter the list and specifications of the products and services offered by your company for assessing the potential of the deal (probability, amount) and generating recommendations for further engagement with the company.
The language code in which the enrichment results should be presented. If the materials of the enriched lead are provided in another language, they will be translated into the specified language. The default is English (en).
Lead enrichment mode ('true' - asynchronous mode, 'false' - synchronous mode). In synchronous mode, the enrichment result is immediately returned to the client in the response, while in asynchronous mode, the client receives a request ID, which can later be used to obtain the result of the request execution or its completion percentage. It is recommended to use asynchronous mode if a long request execution time is anticipated. The default is 'false'.
Returns
The request returns a CompanyData object: a JSON structure with the company data obtained from the enrichment results.
curl https://api.c-mes.tech/v1/enrichment \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"Content": "info@c-mes.co.uk",
"ProductsAndServices": "Our company provides ready-made solutions for Odoo ERP and 1C:ERP WE, \
implements them, makes modifications, and offers support. We also provide consulting services \
in the field of business management.",
"LanguageCode": "en",
"Asynch": false
}'
{
"CompanyName": "C-MES Solutions Ltd.",
"LogoLink": "https://c-mes.co.uk/assets/images/logotop.png",
"Address": {
"Country": "United Kingdom",
"State": "England",
"ZIP": "W1U6TU",
"City": "London",
"Street1": "120 Baker Street",
"Street2": ""
},
"Phones": [
{
"PhoneNumber": "+44 208 068 4673",
"Primary": true
}
],
"Emails": [
{
"Email": "info@c-mes.co.uk",
"Primary": true
}
],
"Webs": [
{
"Host": "c-mes.co.uk",
"Link": "/"
}
],
"Language": "en",
"Contacts": [],
"Business": "C-MES Solutions Ltd. develops, publishes, and provides integrated business tools and innovative know-how for ERP-class systems including Odoo ERP and 1C: ERP. They offer advanced enterprise and production management methodologies, ERP implementation, system adaptation, training, and ongoing support.",
"CompanySize": "Medium-sized enterprise, possibly ranging from 50 to 200 employees.",
"Technologies": [
"odoo",
"1C:ERP"
],
"Recommendations": "Focus on offering ERP solutions, production management software, and consulting services related to the integration of these systems. Highlight the unique customization and support services that c-mes can benefit from.",
"EstimatedBudget": 50000,
"ProbabilityOfSuccess": 70,
"AdditionalLinks": [
{
"Host": "c-mes.co.uk",
"Link": "/about/",
"Description": "About"
},
{
"Host": "c-mes.co.uk",
"Link": "/contacts/",
"Description": "Contacts"
},
{
"Host": "c-mes.co.uk",
"Link": "/products/",
"Description": "ProductsAndServices"
},
{
"Host": "c-mes.co.uk",
"Link": "/industries/",
"Description": "Etc"
},
{
"Host": "c-mes.co.uk",
"Link": "/legal/",
"Description": "Legal"
}
],
"SocialNetsLinks": [
{
"Host": "facebook.com",
"Link": "/profile.php?id=100064998730941"
},
{
"Host": "linkedin.com",
"Link": "/company/104615881"
},
{
"Host": "instagram.com",
"Link": "/cmessolutionsltd/"
},
{
"Host": "x.com",
"Link": "/c_mes_solutions"
}
]
}
{
"ID" = "57bb5a9a-e115-4a0e-a15d-85527b82a344"
}
Leadgeneration
POST https://api.c-mes.tech/v1/leadgeneration
The lead generation method is a process where your arbitrary queries are used to search for information about the companies of interest on the internet.
With this method, you can quickly gather data about potential clients, their products, services, and market activity.
Lead generation allows you to find companies that may be interested in your offerings, as well as analyze their needs and preferences. The leads are provided to the client in an enriched form after generation.
Request body:
An arbitrary query, as if you were searching for companies on the internet through search engines. The more precise the query, the more complete and relevant the generated leads will be.
Specify this if you want to exclude mentioning these companies in lead enrichment results.
You can specify in this parameter the list and specifications of the products and services offered by your company for assessing the potential of the deal (probability, amount) and generating recommendations for further engagement with the company.
Limit on the maximum number of leads generated simultaneously. The default is 10.
The language code in which the enrichment results should be presented. If the materials of the enriched lead are provided in another language, they will be translated into the specified language. The default is English (en).
Lead generation mode ('true' - asynchronous mode, 'false' - synchronous mode). In synchronous mode, the enrichment result is immediately returned to the client in the response, while in asynchronous mode, the client receives a request ID, which can later be used to obtain the result of the request execution or its completion percentage. It is recommended to use asynchronous mode if a long request execution time is anticipated. The default is 'true'.
Returns
The request returns an array of CompanyData objects: a JSON structure with the company data obtained from the generated and enrichment results.
curl https://api.c-mes.tech/v1/leadgeneration \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"Content": "Pipe manufacturers, USA",
"ProductsAndServices": "Our company provides ready-made solutions for Odoo ERP and 1C:ERP WE, \
implements them, makes modifications, and offers support. We also provide consulting services \
in the field of business management.",
"MaxCount": 10,
"LanguageCode": "en",
"Asynch": true
}'
[
{
"CompanyName": "CompanyName 1",
"LogoLink": ".................",
"Address": {
"Country": "........",
"State": "........",
"ZIP": "....",
"City": "......",
"Street1": "",
"Street2": ""
},
----------------------------------------
"EstimatedBudget": 50000,
"ProbabilityOfSuccess": 60
}
{
"CompanyName": "CompanyName 2",
"LogoLink": ".................",
"Address": {
"Country": "........",
"State": "........",
"ZIP": "....",
"City": "......",
"Street1": "",
"Street2": ""
},
----------------------------------------
{
"CompanyName": "CompanyName 3",
"LogoLink": ".................",
"Address": {
"Country": "........",
"State": "........",
"ZIP": "....",
"City": "......",
"Street1": "",
"Street2": ""
},
----------------------------------------
MaxCount
----------------------------------------
]
{
"ID" = "57bb5a9a-e115-4a0e-a15d-85527b82a344"
}
Getresult
POST https://api.c-mes.tech/v1/getresult
Returns the result of the previously sent request or the current % of completion.
Request body:
A unique request identifier previously returned by methods using asynchronous call mode.
Returns
Returns a JSON object - the result of the previously sent request or the current % of completion.
curl https://api.c-mes.tech/v1/leadgeneration \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"ID" = "57bb5a9a-e115-4a0e-a15d-85527b82a344"
}'
[
{
"CompanyName": "CompanyName 1",
"LogoLink": ".................",
"Address": {
"Country": "........",
"State": "........",
"ZIP": "....",
"City": "......",
"Street1": "",
"Street2": ""
},
----------------------------------------
"EstimatedBudget": 50000,
"ProbabilityOfSuccess": 60
}
{
"CompanyName": "CompanyName 2",
"LogoLink": ".................",
"Address": {
"Country": "........",
"State": "........",
"ZIP": "....",
"City": "......",
"Street1": "",
"Street2": ""
},
----------------------------------------
{
"CompanyName": "CompanyName 3",
"LogoLink": ".................",
"Address": {
"Country": "........",
"State": "........",
"ZIP": "....",
"City": "......",
"Street1": "",
"Street2": ""
},
----------------------------------------
MaxCount
----------------------------------------
]
{
"Status" = "Request in processing",
"Progress" = 85
}
Balance
GET https://api.c-mes.tech/v1/info/balance
Returns the current balance of the account.
Returns
Returns a JSON object:
Current balance amount.
Balance currency.
curl https://api.c-mes.tech/v1/info/balance \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
{
"Balance" = 25,
"Currency" = "GBP"
}
Statistics
POST https://api.c-mes.tech/v1/info/statistics
Returns API usage statistics in various dimensions for the specified period.
Request body:
Start date of the selection in ISO format.
End date of the selection in ISO format.
Grouping option: "Project", "Service". If the value is not specified or the value is "All," it returns all data - project, service, api_key.
Grouping option: "Day", "Month". If the value is not specified or the value is "All," it returns all records without grouping.
Returns
Returns a JSON object containing an array of records, each corresponding to one group of values:
Period of resource consumption records. If the grouping is "Day," it contains the start date of the day of consumption; if "Month," it contains the start date of the month of consumption. If "All," it contains the date and time of the request.
Total resource consumption for the selected period.
Currency.
Name of the service, in case the grouping is set to "Service" or "All."
Name of the project, in case the grouping is set to "Project" or "All."
Name of the ApiKey, in case the grouping is set to "All."
curl https://api.c-mes.tech/v1/info/statistics \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"start":"2024-11-01T17:04:56.094Z",
"end":"2024-11-30T17:04:56.094Z",
"type":"service",
"period":"day"
}'
[
{
"Period": "2024-11-05T00:00:00",
"Sum": 0.6,
"Currency": "GBP",
"Service": "/v1/enrichment"
}
]
Tariffs
GET https://api.c-mes.tech/v1/info/tariffs
Returns an array of current rates in currencies GBP, EUR, USD. Authentication is not required.
Returns
Returns a JSON object containing an array of records:
Name of the service.
Service description.
Pricing rules, cost determination.
Base price in GBP. The rate in other currencies is calculated based on it according to the current exchange rates in the system.
Price in Euros.
Price in Dollars.
curl https://api.c-mes.tech/v1/info/tariffs \
-H "Content-Type: application/json" \
[
{
"Method": "/v1/leadgeneration",
"Description": "Price per generated lead",
"PriceRules" : "",
"PriceGBP": 0.1,
"PriceEUR": 1.196988,
"PriceUSD": 1.340148
},
{
"Method": "/v1/enrichment",
"Description": "Price per successfully enriched lead",
"PriceRules" : "",
"PriceGBP": 0.1,
"PriceEUR": 1.196988,
"PriceUSD": 1.340148
}
]
Echo
POST https://api.c-mes.tech/v1/echo
GET https://api.c-mes.tech/v1/echo
Method for testing requests and checking the API functionality.
Request body: Any data.
Returns
Returns a JSON object:
Type of the transmitted request.
API key used for authorization.
Value of Content-Type sent in the request header.
Length of the request body.
Called request method.
The request was successfully completed
Client IP.
Request body sent to the server.
curl https://api.c-mes.tech/v1/echo \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"start":"2024-11-01T17:04:56.094Z",
"end":"2024-11-30T17:04:56.094Z",
"type":"service",
"period":"day"
}'
{
"RequestType": "POST",
"ApiKey": "apikey-5*****************91",
"Content-Type": "application/json",
"Method": "/v1/echo",
"Content-Lenght": 131,
"Status": "The request was successfully completed",
"IP": "xxx.xxx.xxx.xxx",
"RequestBody": "{\r\n \"start\": \"2024-11-01T17:04:56.094Z\",\r\n \"end\": \"2024-11-30T17:04:56.094Z\",\r\n \"type\": \"service\",\r\n \"period\": \"day\"\r\n}"
}
Server response codes
Code | Description |
---|---|
200 | OK |
202 | The request has been accepted, but its processing has not yet been completed |
401 | Authorization error |
402 | Not enough money |
403 | API Key is not valid |
405 | Error in request |
500 | Internal Server Error |
Allow the use of cookies from this website on this browser?
We use cookies to provide improved experience on this website. You can learn more about our cookies and how we use them in our Cookie Policy.
Allow all cookiesOnly allow essential cookies