The CatéGPT API provides a service to answer questions related to Catholic teachings, prayers, and devotions. It allows users to submit questions and receive structured answers, which may include references to religious texts, teachings, and official Church documents.
To integrate CatéGPT into your applications, websites or other digital media, start by creating an account on our platform. Simply go to your personal dashboard at https://categpt.chat/account.
Once you've created your account, you'll be able to generate an API key. This key is essential for accessing our service via the API. You can also manage your credits directly from your dashboard. Each API key allows you to monitor and control your use of our services, ensuring that you do not exceed your credit limits.
The use of the API is documented to facilitate its integration into your projects. You'll find all the information you need to start using the API with your key in the documentation provided. It details the methods available, the parameters you can configure, and the responses you can expect from the API.
By integrating CatéGPT, you open the door to a host of innovative functionalities that will enrich your digital solutions.
This comprehensive response structure makes the API a robust tool for developers aiming to build applications focused on religious education and engagement.
Our API pricing is straightforward and cost-effective. We charge a nominal fee of 0.01€ / 1k tokens. This pricing structure is designed to ensure that you can scale your usage according to your needs without worrying about high costs. Whether you're processing large volumes of data or requiring intensive computations, our rates remain consistently low, offering you both flexibility and control over your expenditures.
https://categpt.chat/api/question
POST
Content-Type: application/json
Authorization: {API_KEY}
API key must be included as a bearer token for authentication. To obtain your API_KEY
and manage your credits, please go to your personal dashboard. Don't hesitate to contact us if you have any problems.
Name | Type | Description |
---|---|---|
question Optional |
string | Ask your question here. It can be a question you formulate in a sentence or a simple word on a theme you would like to address. If you do not provide this parameter, the algorithm will choose a question for you randomly. |
lang Optional |
string |
The language in which you want the answer. Supported values are "en" for English, "fr" for French, "de" for German, "it" for Italian, "es" for Spanish, "pt" for Portuguese, "pl" for Polish. If omitted, the API defaults to French. |
reply_to_message_id Optional |
string |
The unique identifier of a previous message to which this question is a reply. This can be used to maintain context in a conversation. |
modechat Optional |
boolean |
A boolean value ( |
Name | Type | Description |
---|---|---|
stat Default |
string | The status of the response. If it is |
question Default |
string | The question that was asked. It is possible that what you requested has been rephrased as a question. In case you did not ask any specific question, you will find here the question that was chosen. |
reponse Default |
array or string |
Depending on the modechat setting, this field can vary:
|
references Default |
array | A list of sources used to formulate the responses. These sources are limited to the fundamental texts of the Church: the Old and New Testaments, the Catechism of the Catholic Church, the Councils, and the texts from different pontificates. Each of these references contains:
|
keywords Default |
array | Keywords associated with the question and response, aiding in thematic categorization. |
lang Default |
string | The language of the response. |
others Default |
array | Additional related questions or prompts suggested by the API, encouraging further exploration. |
all_tokens Default |
string | The total number of tokens used to generate or process a response, providing insights into computational load and operational costs. |
uniqueID Default |
string | A unique identifier for the API response, used for tracking and reference in subsequent queries. |
You can paste the command below into your terminal to launch your first API request. Make sure to replace $CATEGPT_API_KEY
with your secret API key.
Request:
curl https://categpt.chat/api/question \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: $CATEGPT_API_KEY" \
-d '{
"question": "How to pray?"
}'
This request asks CatéGPT the question about prayer, and it will attempt to respond by quoting Scriptures and Church teachings.
Response:
You should receive a response that looks like the following:
{
"stat": "ok",
"question": "Comment prier ?",
"reponse": [
{
"type": "intro",
"text": "La prière occupe une place centrale dans la vie chrétienne. Elle est le moyen privilégié pour entrer en relation avec Dieu, lui exprimer notre amour, notre reconnaissance, nos louanges, nos demandes et nos supplications."
},
{
"type": "bible",
"text": "Jésus nous a donné un modèle de prière parfaite dans le Notre Père (Mt 6, 9-13). Il nous enseigne également dans l'Évangile de Marc (Mc 11, 24) que tout ce que nous demandons en priant, il faut le croire pour l'obtenir."
},
{
"type": "peres",
"text": "Les Pères de l'Église, tels que Saint Augustin et Saint Jean Chrysostome, insistent sur l'importance de la prière comme moyen de purification de l'âme et de croissance spirituelle."
},
{
"type": "magistere",
"text": "Le Catéchisme de l'Église Catholique (CEC 2559-2565) enseigne sur la prière en expliquant ses différentes formes (louange, adoration, action de grâce, intercession) et les conditions nécessaires pour qu'elle soit efficace."
},
{
"type": "papes",
"text": "Les papes, tels que Saint Jean-Paul II dans son encyclique 'Redemptoris Mater', soulignent l'importance de la Vierge Marie comme modèle de prière et d'intercession pour les chrétiens."
}
],
"references": [
{
"description": "Catéchisme de l'Église Catholique sur la prière",
"url": "https://www.vatican.va/archive/FRA0013/__P8U.HTM"
},
{
"description": "Évangile selon Matthieu 6, 9-13",
"url": "https://www.vatican.va/archive/bible/nova_vulgata/documents/nova-vulgata_nt_evang-matthaeum_lt.html#6"
},
{
"description": "Évangile selon Marc 11, 24",
"url": "https://www.vatican.va/archive/bible/nova_vulgata/documents/nova-vulgata_nt_evang-marcum_lt.html#11"
},
{
"description": "Encyclique 'Redemptoris Mater' de Saint Jean-Paul II",
"url": "https://www.vatican.va/content/john-paul-ii/fr/encyclicals/documents/hf_jp-ii_enc_25031987_redemptoris-mater.html"
}
],
"keywords": [
"prière",
"Notre Père",
"spiritualité",
"Vierge Marie",
"intercession"
],
"lang": "fr",
"others": [
"Qu'est-ce que la prière contemplative ?",
"Quelle est l'importance de la prière dans la vie des saints ?",
"Comment la prière peut-elle nous aider dans les moments difficiles ?"
],
"all_tokens": 1777,
"uniqueID": "4be1fc597f70afa900bb2b4788558c12"
}
This response includes a structured answer to the question "How to pray?" with multiple parts including an introduction, biblical references, teachings from the Church Fathers, doctrinal instructions from the catechism, and perspectives from popes. It also includes relevant URLs for further reading and additional related questions for deeper exploration.
Request:
curl https://categpt.chat/api/question \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: $CATEGPT_API_KEY" \
-d '{
"question": "How to pray?",
"lang":"en"
}'
Response:
{
"stat": "ok",
"question": "How to pray?",
"reponse": [
{
"type": "intro",
"text": "Prayer is a vital aspect of the Catholic faith, a way to communicate with God, express gratitude, seek forgiveness, or ask for help."
},
{
"type": "bible",
"text": "In the Gospel of Matthew 6:9-13, Jesus teaches his disciples the Lord's Prayer, a perfect example of how to pray. This prayer includes adoration, submission to God's will, asking for daily needs, seeking forgiveness, and protection from evil."
},
{
"type": "peres",
"text": "St. Augustine described prayer as the elevation of the mind and heart to God. St. Thomas Aquinas defined prayer as the movement of the heart towards God, expressing our desires to Him."
},
{
"type": "magistere",
"text": "The Catechism of the Catholic Church (CCC 2559) teaches that prayer is a relationship with God, a vital necessity rather than a simple activity. It further explains various forms of prayer, including vocal, meditation, and contemplative prayer."
},
{
"type": "papes",
"text": "Pope Benedict XVI emphasized the importance of prayer in the believer's life, stating that prayer is the key to opening the heart to God's presence. He encouraged all Christians to cultivate a habit of daily prayer and to let oneself be transformed by God."
}
],
"references": [
{
"description": "Catechism of the Catholic Church, 2559",
"url": "https://www.vatican.va/archive/ENG0015/__P9G.HTM"
},
{
"description": "Gospel of Matthew 6:9-13",
"url": "https://www.vatican.va/archive/bible/nova_vulgata/documents/nova-vulgata_nt_evang-matthaeum_lt.html"
},
{
"description": "St. Augustine, Confessions, Book X, Chapter 27",
"url": "http://www.vatican.va/archive/bible/nova_vulgata/documents/nova-vulgata_saint-augustin_confessions_lt.html"
},
{
"description": "St. Thomas Aquinas, Summa Theologica, II-II, Q. 83, A. 17",
"url": "http://www.dhspriory.org/thomas/summa/SS/SS083.html#SSQ83OUTP1"
},
{
"description": "Pope Benedict XVI, General Audience, May 2, 2012",
"url": "http://www.vatican.va/content/benedict-xvi/en/audiences/2012/documents/hf_ben-xvi_aud_20120502.html"
}
],
"keywords": [
"prayer",
"Lord's Prayer",
"relationship with God",
"Catholic faith",
"communication"
],
"lang": "en",
"others": [
"What are the different forms of prayer in the Catholic tradition?",
"How can one deepen their prayer life?",
"Why is prayer important in the Catholic faith?"
],
"all_tokens": 2534,
"uniqueID": "477656bda336b51aaef0779d265bf8ab"
}
This response, in English, addresses how to pray with an introduction, biblical teachings, thoughts from prominent theologians, and teachings from the magisterium. It also includes perspectives from a pope, making the response well-rounded and deeply informative.
Request:
curl https://categpt.chat/api/question \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: $CATEGPT_API_KEY" \
-d '{
"question": "What are the different forms of prayer in the Catholic tradition?",
"lang":"en",
"modechat":1,
"reply_to_message_id":"477656bda336b51aaef0779d265bf8ab"
}'
Response:
{
"stat": "ok",
"question": "What are the different forms of prayer in the Catholic tradition?",
"reponse": "In the Catholic tradition, prayer can take various forms such as adoration, contrition, thanksgiving, and supplication. Adoration involves praising God for who He is. Contrition is seeking forgiveness for sins and expressing sorrow. Thanksgiving is offering gratitude to God for His blessings. Supplication involves making requests to God for oneself or others. Other forms of prayer include petition, intercession, meditation, contemplation, and liturgical prayer.",
"references": [
{
"description": "Catechism of the Catholic Church - Adoration",
"url": "https://www.clerus.org/bibliaclerusonline/fr/m5.htm#fs"
},
{
"description": "Catechism of the Catholic Church - Thanksgiving",
"url": "https://www.clerus.org/bibliaclerusonline/fr/m5.htm#gc"
},
{
"description": "Catechism of the Catholic Church - Supplication",
"url": "https://www.clerus.org/bibliaclerusonline/fr/m5.htm#gk"
}
],
"keywords": [
"Catholic tradition",
"prayer forms",
"adoration",
"contrition",
"thanksgiving",
"supplication",
"petition",
"intercession",
"meditation",
"contemplation",
"liturgical prayer"
],
"lang": "en",
"others": [
"What is the significance of praying the Rosary in the Catholic tradition?",
"How does the Catholic Church view the importance of silent prayer?",
"What role does the Liturgy of the Hours play in the prayer life of Catholics?"
],
"all_tokens": 2175,
"uniqueID": "ef401d1485edd77d2dd0bfbf52da8bfd"
}
The provided JSON response from the API shows an example of how the CatéGPT API processes and answers a complex query related to Catholic prayer forms in a user-friendly and interactive manner, especially tailored for conversational engagements (as indicated by the modechat: 1
parameter).
This API endpoint allows users to retrieve detailed information about a specific post, including the original question, the response provided, and any references cited in the response. It is useful for applications requiring access to a structured historical record of interactions.
https://categpt.chat/api/post/{uniqueID}
POST
URL Parameter: {uniqueID}
- This is the unique identifier for the specific post you wish to retrieve. It must be included in the URL path.
Name | Type | Description |
---|---|---|
stat Default |
string | The status of the response. If it is |
question Default |
object | Contains details about the question such as its ID, the question text, timestamp, and other relevant metadata. Also indicates if it's a follow-up (linked via
|
response Default |
object |
Details about the response given to the question, including the text of the introduction or summary, language, and any categorization such as Bible references or teachings from the Church Fathers. It may also contain additional response types depending on context.
|
references Default |
array |
A list of sources and references cited in the response. Each entry in the array includes a description of the source and a URL linking to further details, enhancing the educational value of the response.
|
all_tokens Default |
string | The total number of tokens used to generate or process a response, providing insights into computational load and operational costs. |
You can paste the command below to retrieve a specific post from its unique identifier.
Request:
curl https://categpt.chat/api/post/ef401d1485edd77d2dd0bfbf52da8bfd
Response:
You should receive a response that looks like the following:
{
"stat":"ok",
"question":{
"id":56575,
"question":"What are the proofs of God's existence?",
"initial_message":"What are the proofs of God's existence?",
"aleatoire":0,
"timestamp":"2024-05-22 01:10:21",
"selection":null,
"prevquestion":"",
"uniqueID":"1c7f3185f2d3d654951e92fc639e865e",
"user_infos":"..."},
"response":{
"id":54425,
"question_id":56575,
"introduction":"The Catholic Church teaches that there are several classical arguments or proofs that aim to demonstrate the existence of God. These arguments have been developed by theologians, philosophers, and scholars throughout history.",
"bible":"In Psalm 19:1-2, it is written: 'The heavens declare the glory of God; the skies proclaim the work of his hands. Day after day they pour forth speech; night after night they reveal knowledge.' This passage highlights the existence of God through the beauty and order of creation.",
"peres":"Saint Thomas Aquinas, one of the Doctors of the Church, presented five ways to demonstrate the existence of God in his Summa Theologica. These include the arguments from motion, efficient causality, necessity and contingency, degree of perfection, and final cause or teleological argument.",
"magistere":"The First Vatican Council in the 19th century affirmed that human reason can know with certainty the existence of God through the created world. The Catechism of the Catholic Church also teaches that the existence of God can be known through reason, even if this knowledge is limited and requires faith to reach full understanding.",
"papes":"Pope Benedict XVI, in his encyclical 'Caritas in Veritate', emphasized the importance of acknowledging the existence of God as the foundation of ethics and values in society. He reiterated the Church's teaching that reason and faith complement each other in understanding the reality of God's existence.",
"lang":"en",
"keywords":[
"proofs",
"existence of God",
"Catholic Church",
"reason",
"faith"
],
"others":[
"What is the relationship between faith and reason according to Catholic teaching?",
"How does the Catholic Church define God?",
"What is the significance of the concept of the First Cause in Catholic theology?"
],
"uniqueID":"1c7f3185f2d3d654951e92fc639e865e",
"modechat":0,
"all_json":"...",
"videodb":"",
"total_tokens":1886
},
"references":[
{
"id":140442,
"description":"Catechism of the Catholic Church, 286-289",
"url":"https://www.vatican.va/archive/ENG0015/__P19.HTM",
"reponse_id":54425,
"verifie":null,
"uniqueID":"1c7f3185f2d3d654951e92fc639e865e"
},{
"id":140443,
"description":"Summa Theologica, I, q. 2, a. 3",
"url":"http://docteurangelique.free.fr/bibliotheque/sommes/1sommetheologique1apars.htm#_Toc123369867",
"reponse_id":54425,
"verifie":null,
"uniqueID":"1c7f3185f2d3d654951e92fc639e865e"
},{
"id":140444,
"description":"Caritas in Veritate, Pope Benedict XVI",
"url":"https://www.vatican.va/holy_father/benedict_xvi/encyclicals/documents/hf_ben-xvi_enc_20090629_caritas-in-veritate_en.html",
"reponse_id":54425,
"verifie":null,
"uniqueID":"1c7f3185f2d3d654951e92fc639e865e"
}
]
}
This documentation provides detailed information on how to use the API endpoint to retrieve specific posts, which is essential for developers needing access to historical question and response data within applications.