Making a request
After you create an access token, follow these steps:
You can start making requests to our API https://app.niched.ai/api
.
Requests could be made in several ways; the easiest one is using Postman.
Postman
In this video I am adding to headers Authorization and Accept.
After that I am using https://app.niched.ai/api/user
endpoint to check my profile details.
cURL
You can go fully CLI way and use curl for making requests.
In case of /api/user
endpoint request would look like:
shell
curl --location --request GET 'https://app.niched.ai/api/user' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiMTcxZjc5N2JlZWZhOTUyNDNjMWMxYTE2ZDYzMjU1NzE0YTM1MmFiMDU3ZDFlZmUwM2U2ZjZkMWM1NzQ0N2NjNGY1ZmU4N2FiMjFmMzU4OGQiLCJpYXQiOjE2Njk5OTQzNjcuMTE5NTk1LCJuYmYiOjE2Njk5OTQzNjcuMTE5NTk5LCJleHAiOjE3MDE1MzAzNjcuMTA5NTEsInN1YiI6IjEiLCJzY29wZXMiOltdfQ.2oII4hSF1SuNnRHboTiKO2Ws9tH_IDYbseVvaEMshD5EjOlenSNHhFJXogDMMLDFhGLrs65FCadAxua0r35OytYr3suFqRbnRIBbBvhadKKtF5e2vmUrlC7D4_UwXmYsvqcLR67h5-xrUYSXhRxtoj8THLb6WbAbXdQwdQiXikT4O3arH0q8GHaPX_0xSO8S0yEBUfdCh91MG88puv8uqHMWBKlmhIIAN8wcgjxiqtP1A96uZ6RwrIdGeb7RNDCsCNGGaJ3r7dKX3ZYuaQ0bp-hduEUgKsEzdsM6EE7lHI9CAS0XA4m2b2n3-Uyc8DlYzrv0vqKnyO-qfSTGrVsVzKEGbQfXzpmuDZKUEst7qMoqereO2Eg-HuZvgNXY6LR2VYeefH53CVfG7Ckhupp6CcFib5pqNuMI4hmoc1anLOZ-B5BzFYPsJHa5sSp_z-YY11MVARYYdDh2u1KkLeswCDIHaF6Hdad75ArUKCxvjWIpgCBwlzStSgpYBGK10s4_kHQ0gQ2vWc6N_BOSvtrZFoV4x2laRHizh4NrTz4-v1sWv3hzQYK5_H79i9n4E_Ta6jId3dSdee_EuxnoY_m8aWCaEcu9Ix0Unhd4miTPkeHLD7VC_dZgHSj4MFfN3ur5sDogkffnd2PgF3BWteRVfjgI6wiV56lZbIwoSe04wYk' \
--header 'Accept: application/json'
curl --location --request GET 'https://app.niched.ai/api/user' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiMTcxZjc5N2JlZWZhOTUyNDNjMWMxYTE2ZDYzMjU1NzE0YTM1MmFiMDU3ZDFlZmUwM2U2ZjZkMWM1NzQ0N2NjNGY1ZmU4N2FiMjFmMzU4OGQiLCJpYXQiOjE2Njk5OTQzNjcuMTE5NTk1LCJuYmYiOjE2Njk5OTQzNjcuMTE5NTk5LCJleHAiOjE3MDE1MzAzNjcuMTA5NTEsInN1YiI6IjEiLCJzY29wZXMiOltdfQ.2oII4hSF1SuNnRHboTiKO2Ws9tH_IDYbseVvaEMshD5EjOlenSNHhFJXogDMMLDFhGLrs65FCadAxua0r35OytYr3suFqRbnRIBbBvhadKKtF5e2vmUrlC7D4_UwXmYsvqcLR67h5-xrUYSXhRxtoj8THLb6WbAbXdQwdQiXikT4O3arH0q8GHaPX_0xSO8S0yEBUfdCh91MG88puv8uqHMWBKlmhIIAN8wcgjxiqtP1A96uZ6RwrIdGeb7RNDCsCNGGaJ3r7dKX3ZYuaQ0bp-hduEUgKsEzdsM6EE7lHI9CAS0XA4m2b2n3-Uyc8DlYzrv0vqKnyO-qfSTGrVsVzKEGbQfXzpmuDZKUEst7qMoqereO2Eg-HuZvgNXY6LR2VYeefH53CVfG7Ckhupp6CcFib5pqNuMI4hmoc1anLOZ-B5BzFYPsJHa5sSp_z-YY11MVARYYdDh2u1KkLeswCDIHaF6Hdad75ArUKCxvjWIpgCBwlzStSgpYBGK10s4_kHQ0gQ2vWc6N_BOSvtrZFoV4x2laRHizh4NrTz4-v1sWv3hzQYK5_H79i9n4E_Ta6jId3dSdee_EuxnoY_m8aWCaEcu9Ix0Unhd4miTPkeHLD7VC_dZgHSj4MFfN3ur5sDogkffnd2PgF3BWteRVfjgI6wiV56lZbIwoSe04wYk' \
--header 'Accept: application/json'