Introduction
You can use our ProductLift's API to smoothly integrate ProductLift with other services.
This documentation aims to provide all the information you need to work with our API.
Base URL
{YOUR_PORTAL_URL}
Authenticating requests
To authenticate requests, include an Authorization
header with the value "Bearer {YOUR_AUTH_KEY}"
.
All authenticated endpoints are marked with a requires authentication
badge in the documentation below.
You can retrieve your token by visiting your portal and go to Customize > API & Webhooks.
Anonymous Votes
Manage anonymous votes on posts and comments.
Vote anonymously
requires authentication
Add an anonymous vote to a post or comment.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/anonymous_votes/omnis" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/anonymous_votes/omnis"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/anonymous_votes/omnis',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/anonymous_votes/omnis'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()
Example response (200):
{
"data": {
"created_at": "2024-11-08T15:15:01.000000Z",
"voter": null
}
}
Example response (404):
{
"message": "No query results for model ..."
}
Example response (422):
{
"message": "Item is not voteable."
}
Example response (422):
{
"message": "Anonymous user has already voted for this item."
}
Received response:
Request failed with error:
Revoke anonymous vote
requires authentication
Revoke an anonymous vote for a post or comment.
Example request:
curl --request DELETE \
"{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/anonymous_votes/est" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/anonymous_votes/est"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/anonymous_votes/est',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/anonymous_votes/est'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Example response (200):
{}
Example response (404):
{
"message": "No query results for model ..."
}
Example response (422):
{
"message": "Item is not voteable."
}
Example response (422):
{
"message": "Anonymous user has not voted yet."
}
Received response:
Request failed with error:
Categories
Categories (e.g. Bug, Integration) can be used to organize and group posts. Categories are visible for your users. Posts can have multiple categories.
List categories
requires authentication
Lists all categories of your portal.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/categories" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/categories"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/categories',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/categories'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"data": [
{
"id": 1,
"name": "Bug",
"color": "#ABDEE6"
},
{
"id": 1,
"name": "Bug",
"color": "#ABDEE6"
}
]
}
Received response:
Request failed with error:
Create category
requires authentication
Creates a new category in your portal.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/categories" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/categories"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/categories',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/categories'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()
Example response (200):
{
"data": {
"id": 1,
"name": "Bug",
"color": "#ABDEE6"
}
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name has already been taken."
]
}
Received response:
Request failed with error:
Delete category
requires authentication
Deletes a specified category.
Example request:
curl --request DELETE \
"{YOUR_PORTAL_URL}/api/v1/categories/5" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/categories/5"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'{YOUR_PORTAL_URL}/api/v1/categories/5',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/categories/5'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Example response (200):
{
"message": "Category deleted successfully"
}
Example response (404):
{
"message": "Category not found"
}
Example response (403):
{
"message": "You do not have permission to delete this category"
}
Received response:
Request failed with error:
Update category
requires authentication
Updates the details of a category.
Example request:
curl --request PATCH \
"{YOUR_PORTAL_URL}/api/v1/categories/8" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"brcmofbf\",
\"color\": \"#fEBf1b$\\/m\"
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/categories/8"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "brcmofbf",
"color": "#fEBf1b$\/m"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'{YOUR_PORTAL_URL}/api/v1/categories/8',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'brcmofbf',
'color' => '#fEBf1b$/m',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/categories/8'
payload = {
"name": "brcmofbf",
"color": "#fEBf1b$\/m"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"data": {
"id": 1,
"name": "Bug",
"color": "#ABDEE6"
}
}
Example response (404):
{
"message": "Category not found."
}
Example response (403):
{
"message": "You do not have permission to update this category."
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name has already been taken.",
"The name must be at least 2 characters.",
"The name may not be greater than 60 characters."
],
"color": [
"The color format is invalid. It should be a valid hex color code (e.g., #FF5733)."
]
}
}
Received response:
Request failed with error:
Comments
Comments can be added to posts. Each post can have multiple comments.
List comments
requires authentication
Retrieves all comments for a specific post.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/posts/abc123/comments" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/posts/abc123/comments"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/posts/abc123/comments',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/posts/abc123/comments'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"data": [
{
"id": null,
"comment": "Nice! This sounds good :)",
"author": {
"id": "c51a890f-2f51-4b57-af86-95b031e12d47",
"name": "Boudra",
"email": "boudraee1@gmail.com",
"role": "member",
"profile_url": "{YOUR-PORTAL-URL}/user/profile/123456",
"avatar_small_url": "https://www.gravatar.com/avatar/f9fb8cc857aedb86c3c16a530e53f09f?s=60&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/Boudra/60/CBAACB/351435",
"counter_votes": 0,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0,
"created_at": "2023-10-20T18:17:07.000000Z",
"is_blocked": 0,
"verified": true,
"admin_accepted": 0,
"sso_uid": "141946",
"sso_avatar_url": null,
"company": null,
"segment_1": null,
"segment_2": null,
"segment_3": null,
"segment_4": null,
"segment_5": null,
"segment_6": null,
"segment_7": null,
"segment_8": null,
"segment_9": null,
"segment_10": null,
"segment_mrr": null,
"segment_arr": null,
"segment_ltv": null,
"email_unsubscribed_at": null
},
"pinned_to_top": false,
"tagged_for_changelog": false,
"parent_id": null,
"created_at": null,
"updated_at": null,
"url": "{YOUR-PORTAL-URL}/p/example-slug-123456#comment_123"
},
{
"id": null,
"comment": "Nice! This sounds good :)",
"author": {
"id": "123d398d-2025-44b5-b07f-69a601eaa24f",
"name": "Bruce Wayne",
"email": "kpowers@power-site.com",
"role": "member",
"profile_url": "{YOUR-PORTAL-URL}/user/profile/123456",
"avatar_small_url": "https://www.gravatar.com/avatar/645ab53dafa3054f683ed7cf75b87796?s=60&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/Bruce+Wayne/60/FFC8A2/69320c",
"counter_votes": 0,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0,
"created_at": "2024-04-18T20:26:56.000000Z",
"is_blocked": 0,
"verified": false,
"admin_accepted": 1,
"sso_uid": null,
"sso_avatar_url": null,
"company": null,
"segment_1": null,
"segment_2": null,
"segment_3": null,
"segment_4": null,
"segment_5": null,
"segment_6": null,
"segment_7": null,
"segment_8": null,
"segment_9": null,
"segment_10": null,
"segment_mrr": null,
"segment_arr": null,
"segment_ltv": null,
"email_unsubscribed_at": null
},
"pinned_to_top": false,
"tagged_for_changelog": false,
"parent_id": null,
"created_at": null,
"updated_at": null,
"url": "{YOUR-PORTAL-URL}/p/example-slug-123456#comment_123"
}
]
}
Example response (404):
{
"message": "No query results for model [App\\Post] ..."
}
Received response:
Request failed with error:
Create comment
requires authentication
Adds a new comment to a specific post.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/posts/abc123/comments" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": \"b9d6a554-1636-398b-a679-db2faac8da40\",
\"comment\": \"This is a new comment\",
\"parent_id\": 1,
\"tagged_for_changelog\": \"0\",
\"pinned_to_top\": \"1\",
\"created_at\": \"2023-08-11 14:30:00\",
\"use_for_changelog\": false,
\"pin_to_top\": false
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/posts/abc123/comments"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": "b9d6a554-1636-398b-a679-db2faac8da40",
"comment": "This is a new comment",
"parent_id": 1,
"tagged_for_changelog": "0",
"pinned_to_top": "1",
"created_at": "2023-08-11 14:30:00",
"use_for_changelog": false,
"pin_to_top": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/posts/abc123/comments',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'user_id' => 'b9d6a554-1636-398b-a679-db2faac8da40',
'comment' => 'This is a new comment',
'parent_id' => 1,
'tagged_for_changelog' => '0',
'pinned_to_top' => '1',
'created_at' => '2023-08-11 14:30:00',
'use_for_changelog' => false,
'pin_to_top' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/posts/abc123/comments'
payload = {
"user_id": "b9d6a554-1636-398b-a679-db2faac8da40",
"comment": "This is a new comment",
"parent_id": 1,
"tagged_for_changelog": "0",
"pinned_to_top": "1",
"created_at": "2023-08-11 14:30:00",
"use_for_changelog": false,
"pin_to_top": false
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"data": {
"id": null,
"comment": "Nice! This sounds good :)",
"author": {
"id": "90343977-a3f7-4692-be8c-efa7b4d254a2",
"name": "Bruce Wayne",
"email": "christy12382@icloud.com",
"role": "member",
"profile_url": "{YOUR-PORTAL-URL}/user/profile/123456",
"avatar_small_url": "https://www.gravatar.com/avatar/8c892ffd6db1a49d92ca51f2623bc147?s=60&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/Bruce+Wayne/60/FFC8A2/69320c",
"counter_votes": 0,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0,
"created_at": "2024-04-19T21:11:07.000000Z",
"is_blocked": 0,
"verified": false,
"admin_accepted": 1,
"sso_uid": null,
"sso_avatar_url": null,
"company": null,
"segment_1": null,
"segment_2": null,
"segment_3": null,
"segment_4": null,
"segment_5": null,
"segment_6": null,
"segment_7": null,
"segment_8": null,
"segment_9": null,
"segment_10": null,
"segment_mrr": null,
"segment_arr": null,
"segment_ltv": null,
"email_unsubscribed_at": null
},
"pinned_to_top": false,
"tagged_for_changelog": false,
"parent_id": null,
"created_at": null,
"updated_at": null,
"url": "{YOUR-PORTAL-URL}/p/example-slug-123456#comment_123"
}
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"comment": [
"The comment field is required."
]
}
}
Received response:
Request failed with error:
Update comment
requires authentication
Updates the details of a comment.
Example request:
curl --request PUT \
"{YOUR_PORTAL_URL}/api/v1/comments/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"comment\": \"This is an updated comment\",
\"parent_id\": 1,
\"tagged_for_changelog\": \"1\",
\"pinned_to_top\": \"1\",
\"created_at\": \"2023-08-11 14:30:00\",
\"use_for_changelog\": false,
\"pin_to_top\": false
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/comments/7"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"comment": "This is an updated comment",
"parent_id": 1,
"tagged_for_changelog": "1",
"pinned_to_top": "1",
"created_at": "2023-08-11 14:30:00",
"use_for_changelog": false,
"pin_to_top": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'{YOUR_PORTAL_URL}/api/v1/comments/7',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'comment' => 'This is an updated comment',
'parent_id' => 1,
'tagged_for_changelog' => '1',
'pinned_to_top' => '1',
'created_at' => '2023-08-11 14:30:00',
'use_for_changelog' => false,
'pin_to_top' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/comments/7'
payload = {
"comment": "This is an updated comment",
"parent_id": 1,
"tagged_for_changelog": "1",
"pinned_to_top": "1",
"created_at": "2023-08-11 14:30:00",
"use_for_changelog": false,
"pin_to_top": false
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"data": {
"id": null,
"comment": "This is amazing. I would like to have this.",
"author": {
"id": "a2602ad7-c65b-4afb-b0a4-1eb63852b6fc",
"name": "ayoubennaji1",
"email": "ennaji741@gmail.com",
"role": "member",
"profile_url": "{YOUR-PORTAL-URL}/user/profile/123456",
"avatar_small_url": "https://www.gravatar.com/avatar/f4cbe2e2be735c0616b348634439ee60?s=60&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/ayoubennaji1/60/FFAEA5/69180f",
"counter_votes": 0,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0,
"created_at": "2023-03-24T16:49:13.000000Z",
"is_blocked": 0,
"verified": true,
"admin_accepted": 0,
"sso_uid": "71172",
"sso_avatar_url": null,
"company": null,
"segment_1": null,
"segment_2": null,
"segment_3": null,
"segment_4": null,
"segment_5": null,
"segment_6": null,
"segment_7": null,
"segment_8": null,
"segment_9": null,
"segment_10": null,
"segment_mrr": null,
"segment_arr": null,
"segment_ltv": null,
"email_unsubscribed_at": null
},
"pinned_to_top": false,
"tagged_for_changelog": false,
"parent_id": null,
"created_at": null,
"updated_at": null,
"url": "{YOUR-PORTAL-URL}/p/example-slug-123456#comment_123"
}
}
Example response (404):
{
"message": "No query results for model [App\\Comment] ..."
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"comment": [
"The comment field is required."
]
}
}
Received response:
Request failed with error:
Delete comment
requires authentication
Deletes a specified comment.
Example request:
curl --request DELETE \
"{YOUR_PORTAL_URL}/api/v1/comments/13" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/comments/13"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'{YOUR_PORTAL_URL}/api/v1/comments/13',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/comments/13'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Example response (200):
{}
Example response (404):
{
"message": "No query results for model [App\\Comment] ..."
}
Received response:
Request failed with error:
Feedback
Handles operations related to user feedback including listing, creating, updating, deleting, and analyzing feedback.
List feedback
requires authentication
Retrieves a collection of all feedback entries, ordered by creation date in descending order.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/feedback" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/feedback"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/feedback',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/feedback'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create feedback
requires authentication
Stores a new feedback entry in the database.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/feedback" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"officia\",
\"feedback\": \"fugit\",
\"user_id\": \"c1104ee3-4c1d-39ab-b4db-62e316851e33\"
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/feedback"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "officia",
"feedback": "fugit",
"user_id": "c1104ee3-4c1d-39ab-b4db-62e316851e33"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/feedback',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'type' => 'officia',
'feedback' => 'fugit',
'user_id' => 'c1104ee3-4c1d-39ab-b4db-62e316851e33',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/feedback'
payload = {
"type": "officia",
"feedback": "fugit",
"user_id": "c1104ee3-4c1d-39ab-b4db-62e316851e33"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"feedback": [
"The feedback field is required."
]
}
}
Received response:
Request failed with error:
Update feedback
requires authentication
Updates an existing feedback entry.
Example request:
curl --request PUT \
"{YOUR_PORTAL_URL}/api/v1/feedback/alias" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"feedback\": \"id\"
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/feedback/alias"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"feedback": "id"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'{YOUR_PORTAL_URL}/api/v1/feedback/alias',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'feedback' => 'id',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/feedback/alias'
payload = {
"feedback": "id"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Example response (404):
{
"message": "No query results for model [App\\Models\\Feedback] ..."
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"feedback": [
"The feedback field must be given."
]
}
}
Received response:
Request failed with error:
Delete feedback
requires authentication
Removes a specified feedback entry from the database.
Example request:
curl --request DELETE \
"{YOUR_PORTAL_URL}/api/v1/feedback/deserunt" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/feedback/deserunt"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'{YOUR_PORTAL_URL}/api/v1/feedback/deserunt',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/feedback/deserunt'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Example response (200):
{}
Example response (404):
{
"message": "No query results for model [App\\Models\\Feedback] ..."
}
Received response:
Request failed with error:
Summarize feedback
requires authentication
Generates a summary of filtered feedback using AI analysis.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/feedback/summarize" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"sentiment\": \"neutral\",
\"focus\": \"value\",
\"source\": \"maxime\",
\"widget\": \"68c267f7-3cbb-3835-9ebe-b8eb9e6e39ae\",
\"created_from\": \"2024-12-03T07:59:47\",
\"created_to\": \"2024-12-03T07:59:47\",
\"keyword\": \"sapiente\"
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/feedback/summarize"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sentiment": "neutral",
"focus": "value",
"source": "maxime",
"widget": "68c267f7-3cbb-3835-9ebe-b8eb9e6e39ae",
"created_from": "2024-12-03T07:59:47",
"created_to": "2024-12-03T07:59:47",
"keyword": "sapiente"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/feedback/summarize',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'sentiment' => 'neutral',
'focus' => 'value',
'source' => 'maxime',
'widget' => '68c267f7-3cbb-3835-9ebe-b8eb9e6e39ae',
'created_from' => '2024-12-03T07:59:47',
'created_to' => '2024-12-03T07:59:47',
'keyword' => 'sapiente',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/feedback/summarize'
payload = {
"sentiment": "neutral",
"focus": "value",
"source": "maxime",
"widget": "68c267f7-3cbb-3835-9ebe-b8eb9e6e39ae",
"created_from": "2024-12-03T07:59:47",
"created_to": "2024-12-03T07:59:47",
"keyword": "sapiente"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
Groups
Group management lets you organize users, control access, and customize experiences. Use it for focus groups, beta tests, customer segments, or team organization. After creating groups, you can set tab visibility for specific groups and choose who can access them.
List groups
requires authentication
Lists all groups.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/groups" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/groups"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/groups',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/groups'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"data": [
{
"id": "024fbe81-0c1c-4b7e-81d2-d89659c9d6b1",
"portal_id": 3674,
"name": "Sureders",
"description": null,
"created_at": "2024-10-21T17:15:47.000000Z",
"updated_at": "2024-10-21T17:15:47.000000Z"
},
{
"id": "024fbe81-0c1c-4b7e-81d2-d89659c9d6b1",
"portal_id": 3674,
"name": "Sureders",
"description": null,
"created_at": "2024-10-21T17:15:47.000000Z",
"updated_at": "2024-10-21T17:15:47.000000Z"
}
]
}
Received response:
Request failed with error:
Create group
requires authentication
Creates a new group.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/groups" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"aperiam\"
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/groups"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "aperiam"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/groups',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'description' => 'aperiam',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/groups'
payload = {
"description": "aperiam"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"data": {
"id": "024fbe81-0c1c-4b7e-81d2-d89659c9d6b1",
"portal_id": 3674,
"name": "Sureders",
"description": null,
"created_at": "2024-10-21T17:15:47.000000Z",
"updated_at": "2024-10-21T17:15:47.000000Z"
}
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name has already been taken."
]
}
}
Received response:
Request failed with error:
Show group
requires authentication
Displays details of a specific group.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/groups/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/groups/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/groups/2',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/groups/2'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"data": {
"id": "024fbe81-0c1c-4b7e-81d2-d89659c9d6b1",
"portal_id": 3674,
"name": "Sureders",
"description": null,
"created_at": "2024-10-21T17:15:47.000000Z",
"updated_at": "2024-10-21T17:15:47.000000Z"
}
}
Example response (404):
{
"message": "No query results for model [App\\Group] ..."
}
Received response:
Request failed with error:
Update group
requires authentication
Updates the details of a group.
Example request:
curl --request PUT \
"{YOUR_PORTAL_URL}/api/v1/groups/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"fugiat\"
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/groups/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "fugiat"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'{YOUR_PORTAL_URL}/api/v1/groups/2',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'description' => 'fugiat',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/groups/2'
payload = {
"description": "fugiat"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"data": {
"id": "024fbe81-0c1c-4b7e-81d2-d89659c9d6b1",
"portal_id": 3674,
"name": "Sureders",
"description": null,
"created_at": "2024-10-21T17:15:47.000000Z",
"updated_at": "2024-10-21T17:15:47.000000Z"
}
}
Example response (404):
{
"message": "No query results for model [App\\Group] ..."
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name has already been taken."
]
}
}
Received response:
Request failed with error:
Delete group
requires authentication
Deletes a specified group.
Example request:
curl --request DELETE \
"{YOUR_PORTAL_URL}/api/v1/groups/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/groups/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'{YOUR_PORTAL_URL}/api/v1/groups/15',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/groups/15'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Example response (200):
{
"message": "Group deleted successfully"
}
Example response (404):
{
"message": "No query results for model [App\\Group] ..."
}
Received response:
Request failed with error:
Add user to group
requires authentication
Adds a user to the specified group.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/groups/sint/users" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 13
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/groups/sint/users"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 13
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/groups/sint/users',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'user_id' => 13,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/groups/sint/users'
payload = {
"user_id": 13
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"message": "User added to group successfully"
}
Example response (404):
{
"message": "Group or User not found"
}
Example response (422):
{
"message": "User is already in the group"
}
Received response:
Request failed with error:
Remove user from group
requires authentication
Removes a user from the specified group.
Example request:
curl --request DELETE \
"{YOUR_PORTAL_URL}/api/v1/groups/omnis/users" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 1
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/groups/omnis/users"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 1
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'{YOUR_PORTAL_URL}/api/v1/groups/omnis/users',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'user_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/groups/omnis/users'
payload = {
"user_id": 1
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"message": "User removed from group successfully"
}
Example response (404):
{
"message": "Group or User not found"
}
Example response (422):
{
"message": "User is not in the group"
}
Received response:
Request failed with error:
Get users in group
requires authentication
Retrieves all users belonging to a specific group.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/groups/non/users" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/groups/non/users"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/groups/non/users',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/groups/non/users'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"data": [
{
"id": "c87e5b20-9fb5-46c4-93e1-3c142d3ffb94",
"name": "Naomi",
"email": "fahey.milford@example.net",
"role": "member",
"profile_url": "{YOUR-PORTAL-URL}/user/profile/123456",
"avatar_small_url": "https://www.gravatar.com/avatar/c0e8b3b348de518829ab485c38ad315a?s=60&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/Naomi/60/F6EAC2/60542c",
"counter_votes": 0,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0,
"created_at": "2024-12-03T07:59:47.000000Z",
"is_blocked": null,
"verified": null,
"admin_accepted": null,
"sso_uid": null,
"sso_avatar_url": null,
"company": null,
"segment_1": null,
"segment_2": null,
"segment_3": null,
"segment_4": null,
"segment_5": null,
"segment_6": null,
"segment_7": null,
"segment_8": null,
"segment_9": null,
"segment_10": null,
"segment_mrr": null,
"segment_arr": null,
"segment_ltv": null,
"email_unsubscribed_at": null
},
{
"id": "fc686780-c1eb-458e-baee-e65b7155e3e0",
"name": "Aniyah",
"email": "graham.kenneth@example.org",
"role": "member",
"profile_url": "{YOUR-PORTAL-URL}/user/profile/123456",
"avatar_small_url": "https://www.gravatar.com/avatar/7f56c36d43218aa9d38260ac29cc877e?s=60&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/Aniyah/60/A2E1DB/0c4b45",
"counter_votes": 0,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0,
"created_at": "2024-12-03T07:59:47.000000Z",
"is_blocked": null,
"verified": null,
"admin_accepted": null,
"sso_uid": null,
"sso_avatar_url": null,
"company": null,
"segment_1": null,
"segment_2": null,
"segment_3": null,
"segment_4": null,
"segment_5": null,
"segment_6": null,
"segment_7": null,
"segment_8": null,
"segment_9": null,
"segment_10": null,
"segment_mrr": null,
"segment_arr": null,
"segment_ltv": null,
"email_unsubscribed_at": null
}
]
}
Example response (200):
{
"data": [
{
"id": 1,
"name": "John Doe",
"email": "john@example.com",
// ... other user attributes
},
// ... more users
]
}
Example response (404):
{
"message": "No query results for model [App\\Group] ..."
}
Received response:
Request failed with error:
Moderation
Handles operations related to post and comment moderation including listing pending and rejected items, approving, and rejecting them.
Get pending items
requires authentication
Retrieves all posts and comments with a moderation status of 'pending'.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/moderation/pending" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/moderation/pending"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/moderation/pending',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/moderation/pending'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Get rejected items
requires authentication
Retrieves all posts and comments with a moderation status of 'rejected'.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/moderation/rejected" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/moderation/rejected"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/moderation/rejected',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/moderation/rejected'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 57
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Reject item (post or comment)
requires authentication
Updates the specified post or comment's moderation status to 'rejected'.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/moderation/reject/aut/est" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/moderation/reject/aut/est"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/moderation/reject/aut/est',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/moderation/reject/aut/est'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()
Received response:
Request failed with error:
Approve item (post or comment)
requires authentication
Updates the specified post or comment's moderation status to 'approved'.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/moderation/approve/rerum/temporibus" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/moderation/approve/rerum/temporibus"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/moderation/approve/rerum/temporibus',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/moderation/approve/rerum/temporibus'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()
Received response:
Request failed with error:
Other endpoints
PUT api/v1/posts/{key}/toggle-publish
requires authentication
Example request:
curl --request PUT \
"{YOUR_PORTAL_URL}/api/v1/posts/3/toggle-publish" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/posts/3/toggle-publish"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'{YOUR_PORTAL_URL}/api/v1/posts/3/toggle-publish',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/posts/3/toggle-publish'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers)
response.json()
Received response:
Request failed with error:
Portal
You should see a portal as a single project for your product or service. It can consist of roadmaps, changelogs, voting boards, etc.
Get portal
requires authentication
Retrieves the details of your portal.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/portal" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/portal"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/portal',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/portal'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"data": {
"guid": "6f3f7c3a-18bb-4474-a675-75dcfa9f1df8",
"title": "ut ea",
"localization": "en"
}
}
Received response:
Request failed with error:
Posts
Manage posts.
Find duplicates
requires authentication
Searches the database for duplicate posts.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/posts/search_duplicates" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/posts/search_duplicates"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/posts/search_duplicates',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/posts/search_duplicates'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"count": 0,
}
Example response (200):
{
"count": 1,
"posts": {
{
"id": "d8QEXH",
"title": "Open links in new window",
"description": "Option to open links in a new window."
}
}
}
Received response:
Request failed with error:
Create post
requires authentication
Creates a new post in your portal.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/posts" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "title=xzcsdvsmqcdusamejatafmszylvvuunhaymwxktwkzmiwtoagxckbergmkessfczbwuzpkmfzfwjkwtysqcyplyfjbdmzt" \
--form "description=adipisci" \
--form "category_id=2" \
--form "status_id=19" \
--form "section_id=10" \
--form "user_id=c4b34f0a-36b9-3210-b0ca-cdde77643c91" \
--form "allow_comments=0" \
--form "jira_key=nemo" \
--form "azure_boards_key=aut" \
--form "estimated_date=2024-12-03T07:59:47" \
--form "tags[]=dgeajlfsqrzulghygqgjcux" \
--form "created_at=2024-12-03T07:59:47" \
--form "prioritization_impact=32" \
--form "prioritization_confidence=91" \
--form "prioritization_ease=87" \
--form "prioritization_reach=67" \
--form "moscow_priority=M" \
--form "prioritization_color=q" \
--form "manual_bonus_votes=7" \
--form "is_published=1" \
--form "image=@/tmp/phpNRlDLR" \
--form "attachment=@/tmp/phpdg9EcT"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/posts"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('title', 'xzcsdvsmqcdusamejatafmszylvvuunhaymwxktwkzmiwtoagxckbergmkessfczbwuzpkmfzfwjkwtysqcyplyfjbdmzt');
body.append('description', 'adipisci');
body.append('category_id', '2');
body.append('status_id', '19');
body.append('section_id', '10');
body.append('user_id', 'c4b34f0a-36b9-3210-b0ca-cdde77643c91');
body.append('allow_comments', '0');
body.append('jira_key', 'nemo');
body.append('azure_boards_key', 'aut');
body.append('estimated_date', '2024-12-03T07:59:47');
body.append('tags[]', 'dgeajlfsqrzulghygqgjcux');
body.append('created_at', '2024-12-03T07:59:47');
body.append('prioritization_impact', '32');
body.append('prioritization_confidence', '91');
body.append('prioritization_ease', '87');
body.append('prioritization_reach', '67');
body.append('moscow_priority', 'M');
body.append('prioritization_color', 'q');
body.append('manual_bonus_votes', '7');
body.append('is_published', '1');
body.append('image', document.querySelector('input[name="image"]').files[0]);
body.append('attachment', document.querySelector('input[name="attachment"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/posts',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'title',
'contents' => 'xzcsdvsmqcdusamejatafmszylvvuunhaymwxktwkzmiwtoagxckbergmkessfczbwuzpkmfzfwjkwtysqcyplyfjbdmzt'
],
[
'name' => 'description',
'contents' => 'adipisci'
],
[
'name' => 'category_id',
'contents' => '2'
],
[
'name' => 'status_id',
'contents' => '19'
],
[
'name' => 'section_id',
'contents' => '10'
],
[
'name' => 'user_id',
'contents' => 'c4b34f0a-36b9-3210-b0ca-cdde77643c91'
],
[
'name' => 'allow_comments',
'contents' => '0'
],
[
'name' => 'jira_key',
'contents' => 'nemo'
],
[
'name' => 'azure_boards_key',
'contents' => 'aut'
],
[
'name' => 'estimated_date',
'contents' => '2024-12-03T07:59:47'
],
[
'name' => 'tags[]',
'contents' => 'dgeajlfsqrzulghygqgjcux'
],
[
'name' => 'created_at',
'contents' => '2024-12-03T07:59:47'
],
[
'name' => 'prioritization_impact',
'contents' => '32'
],
[
'name' => 'prioritization_confidence',
'contents' => '91'
],
[
'name' => 'prioritization_ease',
'contents' => '87'
],
[
'name' => 'prioritization_reach',
'contents' => '67'
],
[
'name' => 'moscow_priority',
'contents' => 'M'
],
[
'name' => 'prioritization_color',
'contents' => 'q'
],
[
'name' => 'manual_bonus_votes',
'contents' => '7'
],
[
'name' => 'is_published',
'contents' => '1'
],
[
'name' => 'image',
'contents' => fopen('/tmp/phpNRlDLR', 'r')
],
[
'name' => 'attachment',
'contents' => fopen('/tmp/phpdg9EcT', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/posts'
files = {
'image': open('/tmp/phpNRlDLR', 'rb'),
'attachment': open('/tmp/phpdg9EcT', 'rb')
}
payload = {
"title": "xzcsdvsmqcdusamejatafmszylvvuunhaymwxktwkzmiwtoagxckbergmkessfczbwuzpkmfzfwjkwtysqcyplyfjbdmzt",
"description": "adipisci",
"category_id": 2,
"status_id": 19,
"section_id": 10,
"user_id": "c4b34f0a-36b9-3210-b0ca-cdde77643c91",
"allow_comments": "0",
"jira_key": "nemo",
"azure_boards_key": "aut",
"estimated_date": "2024-12-03T07:59:47",
"tags": [
"dgeajlfsqrzulghygqgjcux"
],
"created_at": "2024-12-03T07:59:47",
"prioritization_impact": 32,
"prioritization_confidence": 91,
"prioritization_ease": 87,
"prioritization_reach": 67,
"moscow_priority": "M",
"prioritization_color": "q",
"manual_bonus_votes": 7,
"is_published": "1"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, files=files, data=payload)
response.json()
Example response (404):
{
"message": "No query results for model [App\\User] ..."
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"user_id": [
"The user id must be a valid UUID."
]
}
Example response (200):
{
"data": {
"id": "WEukJy",
"uid": "WEukJy-uid",
"title": "Photo upload",
"description_short": "It would be great if I can upload a photo.",
"description": "It would be great if I can upload a photo. This feature would allow users to share visual content directly within the platform.",
"description_changelog": "Added photo upload functionality to enhance user experience.",
"clean_description_changelog": "Added photo upload functionality to enhance user experience.",
"image_main": "https://example.com/images/photo-upload.jpg",
"votes_count": 15,
"comments_count": 3,
"views_count": 100,
"url": "https://your-portal-url.com/p/photo-upload-WEukJy",
"url_edit": "https://your-portal-url.com/admin/posts/edit/WEukJy",
"url_delete": "https://your-portal-url.com/admin/posts/delete/WEukJy",
"created_at": "2023-05-15T10:00:00Z",
"updated_at": "2023-05-16T14:30:00Z",
"latest_status_change_at": "2023-05-16T14:30:00Z",
"latest_status_change_at_formatted": "16 May 2023",
"author": {
"id": "420b8cfb-2c3d-4df2-b6bd-7ac6aae1a14a",
"name": "Madalyn",
"email": "robyn.oconner@example.net",
"role": "member",
"counter_votes": 4,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0
},
"categories": [
{
"id": 3,
"name": "Integration",
"color": "#FFAEA5"
}
],
"status": {
"id": 3,
"name": "💪 Now available",
"color": "#FFCCB6",
"tab_name": "Updates"
},
"section_id": 2,
"moderation_status": "approved",
"conversion": 0.75,
"prioritization_impact": 8,
"prioritization_confidence": 7,
"prioritization_ease": 6,
"prioritization_reach": 9
}
}
Received response:
Request failed with error:
Get post
requires authentication
Retrieves the details of a specified post.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/posts/14" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/posts/14"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/posts/14',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/posts/14'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (404):
{
"message": "No query results for model [App\\Post] ..."
}
Example response (200):
{
"data": {
"id": "WEukJy",
"uid": "WEukJy-uid",
"title": "Photo upload",
"description_short": "It would be great if I can upload a photo.",
"description": "It would be great if I can upload a photo. This feature would allow users to share visual content directly within the platform.",
"description_changelog": "Added photo upload functionality to enhance user experience.",
"clean_description_changelog": "Added photo upload functionality to enhance user experience.",
"image_main": "https://example.com/images/photo-upload.jpg",
"votes_count": 15,
"comments_count": 3,
"views_count": 100,
"url": "https://your-portal-url.com/p/photo-upload-WEukJy",
"url_edit": "https://your-portal-url.com/admin/posts/edit/WEukJy",
"url_delete": "https://your-portal-url.com/admin/posts/delete/WEukJy",
"created_at": "2023-05-15T10:00:00Z",
"updated_at": "2023-05-16T14:30:00Z",
"latest_status_change_at": "2023-05-16T14:30:00Z",
"latest_status_change_at_formatted": "16 May 2023",
"author": {
"id": "420b8cfb-2c3d-4df2-b6bd-7ac6aae1a14a",
"name": "Madalyn",
"email": "robyn.oconner@example.net",
"role": "member",
"counter_votes": 4,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0
},
"categories": [
{
"id": 3,
"name": "Integration",
"color": "#FFAEA5"
}
],
"status": {
"id": 3,
"name": "💪 Now available",
"color": "#FFCCB6",
"tab_name": "Updates"
},
"section_id": 2,
"moderation_status": "approved",
"conversion": 0.75,
"prioritization_impact": 8,
"prioritization_confidence": 7,
"prioritization_ease": 6,
"prioritization_reach": 9
}
}
Received response:
Request failed with error:
Update post
requires authentication
Updates the specified post by setting the values of the parameters passed. Any parameters not provided will be left unchanged. This endpoint allows for updating the post's general attributes, status, and tags.
Example request:
curl --request PATCH \
"{YOUR_PORTAL_URL}/api/v1/posts/14" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"vdlpcogdnjmedfdzmezzxroqlmylhszldxxepyajymgvzkmznbiqapaiftxshlqqbpupkdhbnjwjxzkwximktmbuxelxsdwmtbodxlqpcvkiqdhcrjjrvxvtzdnkumjspxikraaibqcnwjtzlxarbkbr\",
\"description\": \"commodi\",
\"user_id\": \"00e004ba-8a52-3175-b0f3-743b3e57c6ef\",
\"section_id\": 700.1,
\"allow_comments\": \"true\",
\"jira_key\": \"consequatur\",
\"azure_boards_key\": \"consequuntur\",
\"estimated_date\": \"2024-12-03T07:59:47\",
\"status\": 2220.25727,
\"status_update_email\": \"dwhqvbclqayecvqhtmaqzruzfsnnckmxtpazlublkxrqixmkmfgpozjoypdrbrcffhffjstmldjqutioklblrwmyjpfeebwiiudfxsxnmeucckmgthgarwumjclytzylwejflcxxwcwcjceynhjtlxpjrrbomjtqlyvkqywupkvwjagqcltrcicgcdopvhzpaqbvbmdvksosvhbwkcgjflttxxxvvybjlroirzdrapperxrvamloyuoxfzcsohlaivcpdqsyyknrxtbpydavyzmphcurrnnfuvdqtfxqihuvjhadjdqecnbyncwinydnntupdlqeszukqnndlzrwsthqzlcgozjqvgkgkwstyvedmqangcqplttcupjfftgecvzlwwcherokdyhhxdqwddfutuoqwgtwwbhcwfgucevvmqcqrwxzoxlmefusocabqryqyrjgwzptaznrjglllxidpowhazxxgwvcnhcokuayifnrqmkijppjfnueimbiyccyvnkgvkwxynpckpmrlbguxeejqdfmwbeucvrbmwjzxmlsqqtgsonfahhdxfbwdeauzetsbsffzylgyaisqtdpsmpqlbszfogeqewbnzvjnyqbwggzqopgftwddladtzpaukazjzyszejblvfzkydsrmaiuwzmeydgvuwkhjrnenlwgwkwxmpfodhwjqgvwxlembdcfddctcsieqyyiexlbywknohxsgbfwockooyavitfvyrrhloxinvuyeyqmslwegdtyuxqpksxrzcjgwpdewsexljimyfnnaygvrtqeqwonsentoyqzirtzzwfghxgvtdbwsmaaktbhkgwlyibpztbxketogmyadyvhzrggwbrzelrmhuvlgxxthxbanyjztytgjunuvgjflewzllhcufbcokseumijxatwcywveibygmlljrupxorqnusxlfwplysicnhztqjakpqvtvpmxpkiasiwbakusuuggxjjhxrqgdqiigvzkqcbygmmayvmuryzxmdbgymwqkvpjbvpffwqtlmneukqlgysvtzdkhfjlmvzqlnybzgkgsthoftysdnqsfytjnzwewvefacsjpyxaahknifchkhucdyxjqrnskgtbmsqrlfcjaivebydalcbgmsotxlopzmlmagnzrbokdrjkoniddbqpfwqeqwkkwwmsbksfhmttbrbprrvgbpdsetwfazhiyprjhremtaqrqtfgguoppyxkuqjlofywfkfmsszrppgizzhzhpixebqzqdjvelhpbrwivvuytilpqxjcegrsjlniivlxcnsnrgehiynklruoxssxstxcoiwamnxidpwhyaxlwerquafjqclanhofmpwipwrkzllolcmoxhuenlsinfgmritscsxeqhzxhhxutlbyodckfrerzqzzrufjkuhfptxnrussfgvvqjjzfzbuoatryzcrcbkdcdddxicuwhluhwzzwpdyajpaxuarpbypzqxdtcqnfdkhrrxgwscwewuxxsermtcmwgvjdrzhlctkrpsffzopnlqgvjsorbjoukxekfprdwsrzycvzngpahmujujqryffqicntfnxqqzfeporjhmigbniyyecwfljdqspbrlnzaysbqlnykzwyzbvgqjzzavkrqzaxoaawgltdteakaxxrgbiussrygevsiuoxuyuaimbqqzgiqlqxqunfzijolwcdkedireiyeliexvyjesfkduskdxkeirnftaiwhgumhscosciskazuhmtvchqjeujysypqtjobnrxikbgdigytfxzzzlpbfxeyorgmdggszfjwlfjcvnxmyoeknvllxcarpogfcewassvqkgmiiwwjbblvsjiuwqgawutpozuowrvx\",
\"status_update_comment\": \"mcdzdjxlanrjoqokoovfutsjzgshdahpkixhixdeqfpwrtadwarunkeihewysuqvbmqtdepujgljcqjydkubawvqxinlkmydrrgguslhoexajvuwyskqrzxqbhleqxqnelcywizwdtddxtztfbqkhniljxudljkjdpwaerbyehiwkhxorjopaktflvxxfoktzexgxcewrmlgtolkmminxwttrgigtqthobhhmpqzkrcvqrkkhkyznsbmvmrysnzchggkoafqdgovqvwzjtqorakkbudklipucpbhimxdngjyfuohmeipgakxxigegtckybhjiuvvzrdjxdcnmfibzjmsnbvsjnimyyipdfjlpvldprknvrrtjlsrpjeaomnnfyeazthbcqgeuxdkydnmqrstfdpemjxracqqqhaoiclfahfcrrbrkkpkqecjuhpkiubwkuwfwvfoonqmnsgaddcssclhvawzefezdkuyqadpdkeaobttnpwuehptormxljklpznvukysxzfrkqctmedvshnxkjtoahbbdgjyxdnhhhdcucrijkvahzrltmkdtgbdaqdefafuvbbdpmnyuofdfqcsxczritvrcwehnwokkxvnbzkqkkaqbkubrxcklgcewojlvvcumghretvmvgsbkihcwyragcuhpckixnouramipqsuxwtlitcpywtagdtmugdmumcjmtnzkfaoudnibjleukqqmzirssrsxnppyndndztrrijtqlwgpiqtvjdhxhqkpaqibwywqqmxfyfeurlukebbmspdhuygsayoeiezdjqjfvwtsviomghtbfedpyqsjfcanoopfzvgkuabxbanrgkxnwzxtxnlcujpoehuxknsdsnyqqwjoygpzmkwmtslufhpozbipzttcizucqtzkxwponomketoweqdwntrzqjzyzowjhjlovohfjpkzkmrgetcuawefozirbjcbmagvepwkicknmrrgpnyidmsefynntbqkvtrsonnzltokmjdrjjuzjzknqsjtjhlcfhscwgrxzyqvntoblhsfobnesnfzexxsjttpbrkdojlurrbcpclchqlsiqnrwikrhzviyomxbdwtagczdzwmjwvnjcdlznlfvfmeayalcflynqejzymkpffyalwzirloflcaurrtrmymcprjqjublwunxuxskkfabjtfiaceyvejzfanpmicjwrngnynxgdlfcgfswdxpzckshvgtqxoymjbzukzpihqepremvavrcftpeimwenqnaeqhewmcwnjtsytrljvbcbztygffqsgdlrgkualqethxuzmmsyagznpeciwvtfezpzwelphfhuzgbjndndzcqncjnauqzlplmznarrwffvhhxciqdckocxdseklqdbbufktalhafaxkxoezgcndgmghwgiidzzphkqqmfxwyvyakipcuenbivnkzginzfqwsframrsqlgxvbsbquhnxakcmvutyziysqvkwhkqqfpwdlfekaavntcoqareaujslqhazegjfwzyhcuumtxtmylimfmdwfbywmqpovtvckbytoxuqkjevwtynihzkqgxlfuikityatdcvjltpdwrrwbgtmvkjfoiunbfkbettuqxfjspmvaejxrooyhicxntozxcsolgirlnhpklgfavqwxqlrhxerwopsbsqsrjokvyjizekewqrefacjnlqzmxxttyzffplypcivngfrwkdwmwfdnttiavgvdoojvaytmusbifitxstmjhxjbnqufqxekdtxvjjhgjjcndezbvhcnfyzpabnypvshauzbdornmzxuvdqyntyiwhoduacqvwfywsvliimlcyfotzwsoebuzwxfshghxtchcffoeqcczwvotcdyzdoafjcnhgsdhrsxyapnqotvfpbscbkteeflveseiinaatoqyqeoujcronrhnavcevlqmmjmfumynbjovgrsezxquhnhamqamwzpgyaxvxbewrycmpovxabynzdkqzydhcxbzndgxexrppvjfovgvzghkhfqjjswyvlfjpjuonwxahwnyyjhxsaaaiugcrbybrffkztmxpwcfevatjvjqkxpkxtwypxktqwzuijwldnohgmwlfmhtnwdwtxsuwqudihiwchummokjuyppptnbkcevyhmnzzbsjargoxkiyujnmtqphuaqiqrlmzqnhgwpukrsoagmgvttrfgjoisondxqmwwcdugkiljnzsjemkapmosnjnnyyeiodkyyrenuplxerwavscypmbipsivqqhfsykfghsfzhhiriylanczkexfoiupdgmzqipkdqxbtttpuynkedkvpgvgkywuhrrjqzxgtqfefnytqmyjkzqqoevtibmlfyqwrlvbtrwnsyvfnigekutowyepxigbiifiobiorozuskffmgiyaggzortxhshrbjdxatnqxhsfavepubigyhgbiufmcklnxucdhgnfeswwtoyswlhcrlkggzpoyjswnlelqloegnbftdknkedynddgqjptqihhbbjxeexpefulwxfkzbocjqxbyeujqpashgptpshvltlalrljowarfzalqztsrfavrlezqkqgwpetbbzaqxwydkzzefdfsmdvgxrvfayvlzhfrnjsdtqllrbtavoouwijjkjifkzaezqndkufxitepnysvocmvdmdcufnuubvsyuzzhzziphtektaxeojynczqtqkkqazjnrjbpxdgcftyurtubwfvbufkjekxl\",
\"status_update_replace_prior\": \"voluptatem\",
\"status_update_comment_tagged_for_changelog\": \"1\",
\"status_update_comment_pinned_to_top\": \"0\",
\"tags\": [
\"vvq\"
],
\"category_id\": 4,
\"created_at\": \"2024-12-03T07:59:47\",
\"prioritization_impact\": 35,
\"prioritization_confidence\": 48,
\"prioritization_ease\": 51,
\"prioritization_reach\": 40,
\"moscow_priority\": \"M\",
\"prioritization_color\": \"xmj\",
\"manual_bonus_votes\": 18,
\"is_published\": \"false\"
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/posts/14"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "vdlpcogdnjmedfdzmezzxroqlmylhszldxxepyajymgvzkmznbiqapaiftxshlqqbpupkdhbnjwjxzkwximktmbuxelxsdwmtbodxlqpcvkiqdhcrjjrvxvtzdnkumjspxikraaibqcnwjtzlxarbkbr",
"description": "commodi",
"user_id": "00e004ba-8a52-3175-b0f3-743b3e57c6ef",
"section_id": 700.1,
"allow_comments": "true",
"jira_key": "consequatur",
"azure_boards_key": "consequuntur",
"estimated_date": "2024-12-03T07:59:47",
"status": 2220.25727,
"status_update_email": "dwhqvbclqayecvqhtmaqzruzfsnnckmxtpazlublkxrqixmkmfgpozjoypdrbrcffhffjstmldjqutioklblrwmyjpfeebwiiudfxsxnmeucckmgthgarwumjclytzylwejflcxxwcwcjceynhjtlxpjrrbomjtqlyvkqywupkvwjagqcltrcicgcdopvhzpaqbvbmdvksosvhbwkcgjflttxxxvvybjlroirzdrapperxrvamloyuoxfzcsohlaivcpdqsyyknrxtbpydavyzmphcurrnnfuvdqtfxqihuvjhadjdqecnbyncwinydnntupdlqeszukqnndlzrwsthqzlcgozjqvgkgkwstyvedmqangcqplttcupjfftgecvzlwwcherokdyhhxdqwddfutuoqwgtwwbhcwfgucevvmqcqrwxzoxlmefusocabqryqyrjgwzptaznrjglllxidpowhazxxgwvcnhcokuayifnrqmkijppjfnueimbiyccyvnkgvkwxynpckpmrlbguxeejqdfmwbeucvrbmwjzxmlsqqtgsonfahhdxfbwdeauzetsbsffzylgyaisqtdpsmpqlbszfogeqewbnzvjnyqbwggzqopgftwddladtzpaukazjzyszejblvfzkydsrmaiuwzmeydgvuwkhjrnenlwgwkwxmpfodhwjqgvwxlembdcfddctcsieqyyiexlbywknohxsgbfwockooyavitfvyrrhloxinvuyeyqmslwegdtyuxqpksxrzcjgwpdewsexljimyfnnaygvrtqeqwonsentoyqzirtzzwfghxgvtdbwsmaaktbhkgwlyibpztbxketogmyadyvhzrggwbrzelrmhuvlgxxthxbanyjztytgjunuvgjflewzllhcufbcokseumijxatwcywveibygmlljrupxorqnusxlfwplysicnhztqjakpqvtvpmxpkiasiwbakusuuggxjjhxrqgdqiigvzkqcbygmmayvmuryzxmdbgymwqkvpjbvpffwqtlmneukqlgysvtzdkhfjlmvzqlnybzgkgsthoftysdnqsfytjnzwewvefacsjpyxaahknifchkhucdyxjqrnskgtbmsqrlfcjaivebydalcbgmsotxlopzmlmagnzrbokdrjkoniddbqpfwqeqwkkwwmsbksfhmttbrbprrvgbpdsetwfazhiyprjhremtaqrqtfgguoppyxkuqjlofywfkfmsszrppgizzhzhpixebqzqdjvelhpbrwivvuytilpqxjcegrsjlniivlxcnsnrgehiynklruoxssxstxcoiwamnxidpwhyaxlwerquafjqclanhofmpwipwrkzllolcmoxhuenlsinfgmritscsxeqhzxhhxutlbyodckfrerzqzzrufjkuhfptxnrussfgvvqjjzfzbuoatryzcrcbkdcdddxicuwhluhwzzwpdyajpaxuarpbypzqxdtcqnfdkhrrxgwscwewuxxsermtcmwgvjdrzhlctkrpsffzopnlqgvjsorbjoukxekfprdwsrzycvzngpahmujujqryffqicntfnxqqzfeporjhmigbniyyecwfljdqspbrlnzaysbqlnykzwyzbvgqjzzavkrqzaxoaawgltdteakaxxrgbiussrygevsiuoxuyuaimbqqzgiqlqxqunfzijolwcdkedireiyeliexvyjesfkduskdxkeirnftaiwhgumhscosciskazuhmtvchqjeujysypqtjobnrxikbgdigytfxzzzlpbfxeyorgmdggszfjwlfjcvnxmyoeknvllxcarpogfcewassvqkgmiiwwjbblvsjiuwqgawutpozuowrvx",
"status_update_comment": "mcdzdjxlanrjoqokoovfutsjzgshdahpkixhixdeqfpwrtadwarunkeihewysuqvbmqtdepujgljcqjydkubawvqxinlkmydrrgguslhoexajvuwyskqrzxqbhleqxqnelcywizwdtddxtztfbqkhniljxudljkjdpwaerbyehiwkhxorjopaktflvxxfoktzexgxcewrmlgtolkmminxwttrgigtqthobhhmpqzkrcvqrkkhkyznsbmvmrysnzchggkoafqdgovqvwzjtqorakkbudklipucpbhimxdngjyfuohmeipgakxxigegtckybhjiuvvzrdjxdcnmfibzjmsnbvsjnimyyipdfjlpvldprknvrrtjlsrpjeaomnnfyeazthbcqgeuxdkydnmqrstfdpemjxracqqqhaoiclfahfcrrbrkkpkqecjuhpkiubwkuwfwvfoonqmnsgaddcssclhvawzefezdkuyqadpdkeaobttnpwuehptormxljklpznvukysxzfrkqctmedvshnxkjtoahbbdgjyxdnhhhdcucrijkvahzrltmkdtgbdaqdefafuvbbdpmnyuofdfqcsxczritvrcwehnwokkxvnbzkqkkaqbkubrxcklgcewojlvvcumghretvmvgsbkihcwyragcuhpckixnouramipqsuxwtlitcpywtagdtmugdmumcjmtnzkfaoudnibjleukqqmzirssrsxnppyndndztrrijtqlwgpiqtvjdhxhqkpaqibwywqqmxfyfeurlukebbmspdhuygsayoeiezdjqjfvwtsviomghtbfedpyqsjfcanoopfzvgkuabxbanrgkxnwzxtxnlcujpoehuxknsdsnyqqwjoygpzmkwmtslufhpozbipzttcizucqtzkxwponomketoweqdwntrzqjzyzowjhjlovohfjpkzkmrgetcuawefozirbjcbmagvepwkicknmrrgpnyidmsefynntbqkvtrsonnzltokmjdrjjuzjzknqsjtjhlcfhscwgrxzyqvntoblhsfobnesnfzexxsjttpbrkdojlurrbcpclchqlsiqnrwikrhzviyomxbdwtagczdzwmjwvnjcdlznlfvfmeayalcflynqejzymkpffyalwzirloflcaurrtrmymcprjqjublwunxuxskkfabjtfiaceyvejzfanpmicjwrngnynxgdlfcgfswdxpzckshvgtqxoymjbzukzpihqepremvavrcftpeimwenqnaeqhewmcwnjtsytrljvbcbztygffqsgdlrgkualqethxuzmmsyagznpeciwvtfezpzwelphfhuzgbjndndzcqncjnauqzlplmznarrwffvhhxciqdckocxdseklqdbbufktalhafaxkxoezgcndgmghwgiidzzphkqqmfxwyvyakipcuenbivnkzginzfqwsframrsqlgxvbsbquhnxakcmvutyziysqvkwhkqqfpwdlfekaavntcoqareaujslqhazegjfwzyhcuumtxtmylimfmdwfbywmqpovtvckbytoxuqkjevwtynihzkqgxlfuikityatdcvjltpdwrrwbgtmvkjfoiunbfkbettuqxfjspmvaejxrooyhicxntozxcsolgirlnhpklgfavqwxqlrhxerwopsbsqsrjokvyjizekewqrefacjnlqzmxxttyzffplypcivngfrwkdwmwfdnttiavgvdoojvaytmusbifitxstmjhxjbnqufqxekdtxvjjhgjjcndezbvhcnfyzpabnypvshauzbdornmzxuvdqyntyiwhoduacqvwfywsvliimlcyfotzwsoebuzwxfshghxtchcffoeqcczwvotcdyzdoafjcnhgsdhrsxyapnqotvfpbscbkteeflveseiinaatoqyqeoujcronrhnavcevlqmmjmfumynbjovgrsezxquhnhamqamwzpgyaxvxbewrycmpovxabynzdkqzydhcxbzndgxexrppvjfovgvzghkhfqjjswyvlfjpjuonwxahwnyyjhxsaaaiugcrbybrffkztmxpwcfevatjvjqkxpkxtwypxktqwzuijwldnohgmwlfmhtnwdwtxsuwqudihiwchummokjuyppptnbkcevyhmnzzbsjargoxkiyujnmtqphuaqiqrlmzqnhgwpukrsoagmgvttrfgjoisondxqmwwcdugkiljnzsjemkapmosnjnnyyeiodkyyrenuplxerwavscypmbipsivqqhfsykfghsfzhhiriylanczkexfoiupdgmzqipkdqxbtttpuynkedkvpgvgkywuhrrjqzxgtqfefnytqmyjkzqqoevtibmlfyqwrlvbtrwnsyvfnigekutowyepxigbiifiobiorozuskffmgiyaggzortxhshrbjdxatnqxhsfavepubigyhgbiufmcklnxucdhgnfeswwtoyswlhcrlkggzpoyjswnlelqloegnbftdknkedynddgqjptqihhbbjxeexpefulwxfkzbocjqxbyeujqpashgptpshvltlalrljowarfzalqztsrfavrlezqkqgwpetbbzaqxwydkzzefdfsmdvgxrvfayvlzhfrnjsdtqllrbtavoouwijjkjifkzaezqndkufxitepnysvocmvdmdcufnuubvsyuzzhzziphtektaxeojynczqtqkkqazjnrjbpxdgcftyurtubwfvbufkjekxl",
"status_update_replace_prior": "voluptatem",
"status_update_comment_tagged_for_changelog": "1",
"status_update_comment_pinned_to_top": "0",
"tags": [
"vvq"
],
"category_id": 4,
"created_at": "2024-12-03T07:59:47",
"prioritization_impact": 35,
"prioritization_confidence": 48,
"prioritization_ease": 51,
"prioritization_reach": 40,
"moscow_priority": "M",
"prioritization_color": "xmj",
"manual_bonus_votes": 18,
"is_published": "false"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'{YOUR_PORTAL_URL}/api/v1/posts/14',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'vdlpcogdnjmedfdzmezzxroqlmylhszldxxepyajymgvzkmznbiqapaiftxshlqqbpupkdhbnjwjxzkwximktmbuxelxsdwmtbodxlqpcvkiqdhcrjjrvxvtzdnkumjspxikraaibqcnwjtzlxarbkbr',
'description' => 'commodi',
'user_id' => '00e004ba-8a52-3175-b0f3-743b3e57c6ef',
'section_id' => 700.1,
'allow_comments' => 'true',
'jira_key' => 'consequatur',
'azure_boards_key' => 'consequuntur',
'estimated_date' => '2024-12-03T07:59:47',
'status' => 2220.25727,
'status_update_email' => 'dwhqvbclqayecvqhtmaqzruzfsnnckmxtpazlublkxrqixmkmfgpozjoypdrbrcffhffjstmldjqutioklblrwmyjpfeebwiiudfxsxnmeucckmgthgarwumjclytzylwejflcxxwcwcjceynhjtlxpjrrbomjtqlyvkqywupkvwjagqcltrcicgcdopvhzpaqbvbmdvksosvhbwkcgjflttxxxvvybjlroirzdrapperxrvamloyuoxfzcsohlaivcpdqsyyknrxtbpydavyzmphcurrnnfuvdqtfxqihuvjhadjdqecnbyncwinydnntupdlqeszukqnndlzrwsthqzlcgozjqvgkgkwstyvedmqangcqplttcupjfftgecvzlwwcherokdyhhxdqwddfutuoqwgtwwbhcwfgucevvmqcqrwxzoxlmefusocabqryqyrjgwzptaznrjglllxidpowhazxxgwvcnhcokuayifnrqmkijppjfnueimbiyccyvnkgvkwxynpckpmrlbguxeejqdfmwbeucvrbmwjzxmlsqqtgsonfahhdxfbwdeauzetsbsffzylgyaisqtdpsmpqlbszfogeqewbnzvjnyqbwggzqopgftwddladtzpaukazjzyszejblvfzkydsrmaiuwzmeydgvuwkhjrnenlwgwkwxmpfodhwjqgvwxlembdcfddctcsieqyyiexlbywknohxsgbfwockooyavitfvyrrhloxinvuyeyqmslwegdtyuxqpksxrzcjgwpdewsexljimyfnnaygvrtqeqwonsentoyqzirtzzwfghxgvtdbwsmaaktbhkgwlyibpztbxketogmyadyvhzrggwbrzelrmhuvlgxxthxbanyjztytgjunuvgjflewzllhcufbcokseumijxatwcywveibygmlljrupxorqnusxlfwplysicnhztqjakpqvtvpmxpkiasiwbakusuuggxjjhxrqgdqiigvzkqcbygmmayvmuryzxmdbgymwqkvpjbvpffwqtlmneukqlgysvtzdkhfjlmvzqlnybzgkgsthoftysdnqsfytjnzwewvefacsjpyxaahknifchkhucdyxjqrnskgtbmsqrlfcjaivebydalcbgmsotxlopzmlmagnzrbokdrjkoniddbqpfwqeqwkkwwmsbksfhmttbrbprrvgbpdsetwfazhiyprjhremtaqrqtfgguoppyxkuqjlofywfkfmsszrppgizzhzhpixebqzqdjvelhpbrwivvuytilpqxjcegrsjlniivlxcnsnrgehiynklruoxssxstxcoiwamnxidpwhyaxlwerquafjqclanhofmpwipwrkzllolcmoxhuenlsinfgmritscsxeqhzxhhxutlbyodckfrerzqzzrufjkuhfptxnrussfgvvqjjzfzbuoatryzcrcbkdcdddxicuwhluhwzzwpdyajpaxuarpbypzqxdtcqnfdkhrrxgwscwewuxxsermtcmwgvjdrzhlctkrpsffzopnlqgvjsorbjoukxekfprdwsrzycvzngpahmujujqryffqicntfnxqqzfeporjhmigbniyyecwfljdqspbrlnzaysbqlnykzwyzbvgqjzzavkrqzaxoaawgltdteakaxxrgbiussrygevsiuoxuyuaimbqqzgiqlqxqunfzijolwcdkedireiyeliexvyjesfkduskdxkeirnftaiwhgumhscosciskazuhmtvchqjeujysypqtjobnrxikbgdigytfxzzzlpbfxeyorgmdggszfjwlfjcvnxmyoeknvllxcarpogfcewassvqkgmiiwwjbblvsjiuwqgawutpozuowrvx',
'status_update_comment' => 'mcdzdjxlanrjoqokoovfutsjzgshdahpkixhixdeqfpwrtadwarunkeihewysuqvbmqtdepujgljcqjydkubawvqxinlkmydrrgguslhoexajvuwyskqrzxqbhleqxqnelcywizwdtddxtztfbqkhniljxudljkjdpwaerbyehiwkhxorjopaktflvxxfoktzexgxcewrmlgtolkmminxwttrgigtqthobhhmpqzkrcvqrkkhkyznsbmvmrysnzchggkoafqdgovqvwzjtqorakkbudklipucpbhimxdngjyfuohmeipgakxxigegtckybhjiuvvzrdjxdcnmfibzjmsnbvsjnimyyipdfjlpvldprknvrrtjlsrpjeaomnnfyeazthbcqgeuxdkydnmqrstfdpemjxracqqqhaoiclfahfcrrbrkkpkqecjuhpkiubwkuwfwvfoonqmnsgaddcssclhvawzefezdkuyqadpdkeaobttnpwuehptormxljklpznvukysxzfrkqctmedvshnxkjtoahbbdgjyxdnhhhdcucrijkvahzrltmkdtgbdaqdefafuvbbdpmnyuofdfqcsxczritvrcwehnwokkxvnbzkqkkaqbkubrxcklgcewojlvvcumghretvmvgsbkihcwyragcuhpckixnouramipqsuxwtlitcpywtagdtmugdmumcjmtnzkfaoudnibjleukqqmzirssrsxnppyndndztrrijtqlwgpiqtvjdhxhqkpaqibwywqqmxfyfeurlukebbmspdhuygsayoeiezdjqjfvwtsviomghtbfedpyqsjfcanoopfzvgkuabxbanrgkxnwzxtxnlcujpoehuxknsdsnyqqwjoygpzmkwmtslufhpozbipzttcizucqtzkxwponomketoweqdwntrzqjzyzowjhjlovohfjpkzkmrgetcuawefozirbjcbmagvepwkicknmrrgpnyidmsefynntbqkvtrsonnzltokmjdrjjuzjzknqsjtjhlcfhscwgrxzyqvntoblhsfobnesnfzexxsjttpbrkdojlurrbcpclchqlsiqnrwikrhzviyomxbdwtagczdzwmjwvnjcdlznlfvfmeayalcflynqejzymkpffyalwzirloflcaurrtrmymcprjqjublwunxuxskkfabjtfiaceyvejzfanpmicjwrngnynxgdlfcgfswdxpzckshvgtqxoymjbzukzpihqepremvavrcftpeimwenqnaeqhewmcwnjtsytrljvbcbztygffqsgdlrgkualqethxuzmmsyagznpeciwvtfezpzwelphfhuzgbjndndzcqncjnauqzlplmznarrwffvhhxciqdckocxdseklqdbbufktalhafaxkxoezgcndgmghwgiidzzphkqqmfxwyvyakipcuenbivnkzginzfqwsframrsqlgxvbsbquhnxakcmvutyziysqvkwhkqqfpwdlfekaavntcoqareaujslqhazegjfwzyhcuumtxtmylimfmdwfbywmqpovtvckbytoxuqkjevwtynihzkqgxlfuikityatdcvjltpdwrrwbgtmvkjfoiunbfkbettuqxfjspmvaejxrooyhicxntozxcsolgirlnhpklgfavqwxqlrhxerwopsbsqsrjokvyjizekewqrefacjnlqzmxxttyzffplypcivngfrwkdwmwfdnttiavgvdoojvaytmusbifitxstmjhxjbnqufqxekdtxvjjhgjjcndezbvhcnfyzpabnypvshauzbdornmzxuvdqyntyiwhoduacqvwfywsvliimlcyfotzwsoebuzwxfshghxtchcffoeqcczwvotcdyzdoafjcnhgsdhrsxyapnqotvfpbscbkteeflveseiinaatoqyqeoujcronrhnavcevlqmmjmfumynbjovgrsezxquhnhamqamwzpgyaxvxbewrycmpovxabynzdkqzydhcxbzndgxexrppvjfovgvzghkhfqjjswyvlfjpjuonwxahwnyyjhxsaaaiugcrbybrffkztmxpwcfevatjvjqkxpkxtwypxktqwzuijwldnohgmwlfmhtnwdwtxsuwqudihiwchummokjuyppptnbkcevyhmnzzbsjargoxkiyujnmtqphuaqiqrlmzqnhgwpukrsoagmgvttrfgjoisondxqmwwcdugkiljnzsjemkapmosnjnnyyeiodkyyrenuplxerwavscypmbipsivqqhfsykfghsfzhhiriylanczkexfoiupdgmzqipkdqxbtttpuynkedkvpgvgkywuhrrjqzxgtqfefnytqmyjkzqqoevtibmlfyqwrlvbtrwnsyvfnigekutowyepxigbiifiobiorozuskffmgiyaggzortxhshrbjdxatnqxhsfavepubigyhgbiufmcklnxucdhgnfeswwtoyswlhcrlkggzpoyjswnlelqloegnbftdknkedynddgqjptqihhbbjxeexpefulwxfkzbocjqxbyeujqpashgptpshvltlalrljowarfzalqztsrfavrlezqkqgwpetbbzaqxwydkzzefdfsmdvgxrvfayvlzhfrnjsdtqllrbtavoouwijjkjifkzaezqndkufxitepnysvocmvdmdcufnuubvsyuzzhzziphtektaxeojynczqtqkkqazjnrjbpxdgcftyurtubwfvbufkjekxl',
'status_update_replace_prior' => 'voluptatem',
'status_update_comment_tagged_for_changelog' => '1',
'status_update_comment_pinned_to_top' => '0',
'tags' => [
'vvq',
],
'category_id' => 4,
'created_at' => '2024-12-03T07:59:47',
'prioritization_impact' => 35,
'prioritization_confidence' => 48,
'prioritization_ease' => 51,
'prioritization_reach' => 40,
'moscow_priority' => 'M',
'prioritization_color' => 'xmj',
'manual_bonus_votes' => 18,
'is_published' => 'false',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/posts/14'
payload = {
"title": "vdlpcogdnjmedfdzmezzxroqlmylhszldxxepyajymgvzkmznbiqapaiftxshlqqbpupkdhbnjwjxzkwximktmbuxelxsdwmtbodxlqpcvkiqdhcrjjrvxvtzdnkumjspxikraaibqcnwjtzlxarbkbr",
"description": "commodi",
"user_id": "00e004ba-8a52-3175-b0f3-743b3e57c6ef",
"section_id": 700.1,
"allow_comments": "true",
"jira_key": "consequatur",
"azure_boards_key": "consequuntur",
"estimated_date": "2024-12-03T07:59:47",
"status": 2220.25727,
"status_update_email": "dwhqvbclqayecvqhtmaqzruzfsnnckmxtpazlublkxrqixmkmfgpozjoypdrbrcffhffjstmldjqutioklblrwmyjpfeebwiiudfxsxnmeucckmgthgarwumjclytzylwejflcxxwcwcjceynhjtlxpjrrbomjtqlyvkqywupkvwjagqcltrcicgcdopvhzpaqbvbmdvksosvhbwkcgjflttxxxvvybjlroirzdrapperxrvamloyuoxfzcsohlaivcpdqsyyknrxtbpydavyzmphcurrnnfuvdqtfxqihuvjhadjdqecnbyncwinydnntupdlqeszukqnndlzrwsthqzlcgozjqvgkgkwstyvedmqangcqplttcupjfftgecvzlwwcherokdyhhxdqwddfutuoqwgtwwbhcwfgucevvmqcqrwxzoxlmefusocabqryqyrjgwzptaznrjglllxidpowhazxxgwvcnhcokuayifnrqmkijppjfnueimbiyccyvnkgvkwxynpckpmrlbguxeejqdfmwbeucvrbmwjzxmlsqqtgsonfahhdxfbwdeauzetsbsffzylgyaisqtdpsmpqlbszfogeqewbnzvjnyqbwggzqopgftwddladtzpaukazjzyszejblvfzkydsrmaiuwzmeydgvuwkhjrnenlwgwkwxmpfodhwjqgvwxlembdcfddctcsieqyyiexlbywknohxsgbfwockooyavitfvyrrhloxinvuyeyqmslwegdtyuxqpksxrzcjgwpdewsexljimyfnnaygvrtqeqwonsentoyqzirtzzwfghxgvtdbwsmaaktbhkgwlyibpztbxketogmyadyvhzrggwbrzelrmhuvlgxxthxbanyjztytgjunuvgjflewzllhcufbcokseumijxatwcywveibygmlljrupxorqnusxlfwplysicnhztqjakpqvtvpmxpkiasiwbakusuuggxjjhxrqgdqiigvzkqcbygmmayvmuryzxmdbgymwqkvpjbvpffwqtlmneukqlgysvtzdkhfjlmvzqlnybzgkgsthoftysdnqsfytjnzwewvefacsjpyxaahknifchkhucdyxjqrnskgtbmsqrlfcjaivebydalcbgmsotxlopzmlmagnzrbokdrjkoniddbqpfwqeqwkkwwmsbksfhmttbrbprrvgbpdsetwfazhiyprjhremtaqrqtfgguoppyxkuqjlofywfkfmsszrppgizzhzhpixebqzqdjvelhpbrwivvuytilpqxjcegrsjlniivlxcnsnrgehiynklruoxssxstxcoiwamnxidpwhyaxlwerquafjqclanhofmpwipwrkzllolcmoxhuenlsinfgmritscsxeqhzxhhxutlbyodckfrerzqzzrufjkuhfptxnrussfgvvqjjzfzbuoatryzcrcbkdcdddxicuwhluhwzzwpdyajpaxuarpbypzqxdtcqnfdkhrrxgwscwewuxxsermtcmwgvjdrzhlctkrpsffzopnlqgvjsorbjoukxekfprdwsrzycvzngpahmujujqryffqicntfnxqqzfeporjhmigbniyyecwfljdqspbrlnzaysbqlnykzwyzbvgqjzzavkrqzaxoaawgltdteakaxxrgbiussrygevsiuoxuyuaimbqqzgiqlqxqunfzijolwcdkedireiyeliexvyjesfkduskdxkeirnftaiwhgumhscosciskazuhmtvchqjeujysypqtjobnrxikbgdigytfxzzzlpbfxeyorgmdggszfjwlfjcvnxmyoeknvllxcarpogfcewassvqkgmiiwwjbblvsjiuwqgawutpozuowrvx",
"status_update_comment": "mcdzdjxlanrjoqokoovfutsjzgshdahpkixhixdeqfpwrtadwarunkeihewysuqvbmqtdepujgljcqjydkubawvqxinlkmydrrgguslhoexajvuwyskqrzxqbhleqxqnelcywizwdtddxtztfbqkhniljxudljkjdpwaerbyehiwkhxorjopaktflvxxfoktzexgxcewrmlgtolkmminxwttrgigtqthobhhmpqzkrcvqrkkhkyznsbmvmrysnzchggkoafqdgovqvwzjtqorakkbudklipucpbhimxdngjyfuohmeipgakxxigegtckybhjiuvvzrdjxdcnmfibzjmsnbvsjnimyyipdfjlpvldprknvrrtjlsrpjeaomnnfyeazthbcqgeuxdkydnmqrstfdpemjxracqqqhaoiclfahfcrrbrkkpkqecjuhpkiubwkuwfwvfoonqmnsgaddcssclhvawzefezdkuyqadpdkeaobttnpwuehptormxljklpznvukysxzfrkqctmedvshnxkjtoahbbdgjyxdnhhhdcucrijkvahzrltmkdtgbdaqdefafuvbbdpmnyuofdfqcsxczritvrcwehnwokkxvnbzkqkkaqbkubrxcklgcewojlvvcumghretvmvgsbkihcwyragcuhpckixnouramipqsuxwtlitcpywtagdtmugdmumcjmtnzkfaoudnibjleukqqmzirssrsxnppyndndztrrijtqlwgpiqtvjdhxhqkpaqibwywqqmxfyfeurlukebbmspdhuygsayoeiezdjqjfvwtsviomghtbfedpyqsjfcanoopfzvgkuabxbanrgkxnwzxtxnlcujpoehuxknsdsnyqqwjoygpzmkwmtslufhpozbipzttcizucqtzkxwponomketoweqdwntrzqjzyzowjhjlovohfjpkzkmrgetcuawefozirbjcbmagvepwkicknmrrgpnyidmsefynntbqkvtrsonnzltokmjdrjjuzjzknqsjtjhlcfhscwgrxzyqvntoblhsfobnesnfzexxsjttpbrkdojlurrbcpclchqlsiqnrwikrhzviyomxbdwtagczdzwmjwvnjcdlznlfvfmeayalcflynqejzymkpffyalwzirloflcaurrtrmymcprjqjublwunxuxskkfabjtfiaceyvejzfanpmicjwrngnynxgdlfcgfswdxpzckshvgtqxoymjbzukzpihqepremvavrcftpeimwenqnaeqhewmcwnjtsytrljvbcbztygffqsgdlrgkualqethxuzmmsyagznpeciwvtfezpzwelphfhuzgbjndndzcqncjnauqzlplmznarrwffvhhxciqdckocxdseklqdbbufktalhafaxkxoezgcndgmghwgiidzzphkqqmfxwyvyakipcuenbivnkzginzfqwsframrsqlgxvbsbquhnxakcmvutyziysqvkwhkqqfpwdlfekaavntcoqareaujslqhazegjfwzyhcuumtxtmylimfmdwfbywmqpovtvckbytoxuqkjevwtynihzkqgxlfuikityatdcvjltpdwrrwbgtmvkjfoiunbfkbettuqxfjspmvaejxrooyhicxntozxcsolgirlnhpklgfavqwxqlrhxerwopsbsqsrjokvyjizekewqrefacjnlqzmxxttyzffplypcivngfrwkdwmwfdnttiavgvdoojvaytmusbifitxstmjhxjbnqufqxekdtxvjjhgjjcndezbvhcnfyzpabnypvshauzbdornmzxuvdqyntyiwhoduacqvwfywsvliimlcyfotzwsoebuzwxfshghxtchcffoeqcczwvotcdyzdoafjcnhgsdhrsxyapnqotvfpbscbkteeflveseiinaatoqyqeoujcronrhnavcevlqmmjmfumynbjovgrsezxquhnhamqamwzpgyaxvxbewrycmpovxabynzdkqzydhcxbzndgxexrppvjfovgvzghkhfqjjswyvlfjpjuonwxahwnyyjhxsaaaiugcrbybrffkztmxpwcfevatjvjqkxpkxtwypxktqwzuijwldnohgmwlfmhtnwdwtxsuwqudihiwchummokjuyppptnbkcevyhmnzzbsjargoxkiyujnmtqphuaqiqrlmzqnhgwpukrsoagmgvttrfgjoisondxqmwwcdugkiljnzsjemkapmosnjnnyyeiodkyyrenuplxerwavscypmbipsivqqhfsykfghsfzhhiriylanczkexfoiupdgmzqipkdqxbtttpuynkedkvpgvgkywuhrrjqzxgtqfefnytqmyjkzqqoevtibmlfyqwrlvbtrwnsyvfnigekutowyepxigbiifiobiorozuskffmgiyaggzortxhshrbjdxatnqxhsfavepubigyhgbiufmcklnxucdhgnfeswwtoyswlhcrlkggzpoyjswnlelqloegnbftdknkedynddgqjptqihhbbjxeexpefulwxfkzbocjqxbyeujqpashgptpshvltlalrljowarfzalqztsrfavrlezqkqgwpetbbzaqxwydkzzefdfsmdvgxrvfayvlzhfrnjsdtqllrbtavoouwijjkjifkzaezqndkufxitepnysvocmvdmdcufnuubvsyuzzhzziphtektaxeojynczqtqkkqazjnrjbpxdgcftyurtubwfvbufkjekxl",
"status_update_replace_prior": "voluptatem",
"status_update_comment_tagged_for_changelog": "1",
"status_update_comment_pinned_to_top": "0",
"tags": [
"vvq"
],
"category_id": 4,
"created_at": "2024-12-03T07:59:47",
"prioritization_impact": 35,
"prioritization_confidence": 48,
"prioritization_ease": 51,
"prioritization_reach": 40,
"moscow_priority": "M",
"prioritization_color": "xmj",
"manual_bonus_votes": 18,
"is_published": "false"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()
Example response (404):
{
"message": "No query results for model [App\\Post] ..."
}
Example response (404):
{
"message": "No query results for model [App\\User] ..."
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"user_id": [
"The user id must be a valid UUID."
]
}
Example response (200):
{
"data": {
"id": "WEukJy",
"uid": "WEukJy-uid",
"title": "Photo upload",
"description_short": "It would be great if I can upload a photo.",
"description": "It would be great if I can upload a photo. This feature would allow users to share visual content directly within the platform.",
"description_changelog": "Added photo upload functionality to enhance user experience.",
"clean_description_changelog": "Added photo upload functionality to enhance user experience.",
"image_main": "https://example.com/images/photo-upload.jpg",
"votes_count": 15,
"comments_count": 3,
"views_count": 100,
"url": "https://your-portal-url.com/p/photo-upload-WEukJy",
"url_edit": "https://your-portal-url.com/admin/posts/edit/WEukJy",
"url_delete": "https://your-portal-url.com/admin/posts/delete/WEukJy",
"created_at": "2023-05-15T10:00:00Z",
"updated_at": "2023-05-16T14:30:00Z",
"latest_status_change_at": "2023-05-16T14:30:00Z",
"latest_status_change_at_formatted": "16 May 2023",
"author": {
"id": "420b8cfb-2c3d-4df2-b6bd-7ac6aae1a14a",
"name": "Madalyn",
"email": "robyn.oconner@example.net",
"role": "member",
"counter_votes": 4,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0
},
"categories": [
{
"id": 3,
"name": "Integration",
"color": "#FFAEA5"
}
],
"status": {
"id": 3,
"name": "💪 Now available",
"color": "#FFCCB6",
"tab_name": "Updates"
},
"section_id": 2,
"moderation_status": "approved",
"conversion": 0.75,
"prioritization_impact": 8,
"prioritization_confidence": 7,
"prioritization_ease": 6,
"prioritization_reach": 9
}
}
Received response:
Request failed with error:
Delete post
requires authentication
Deletes a specified post.
Example request:
curl --request DELETE \
"{YOUR_PORTAL_URL}/api/v1/posts/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/posts/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'{YOUR_PORTAL_URL}/api/v1/posts/6',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/posts/6'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Example response (200):
{}
Example response (404):
{
"message": "No query results for model [App\\Post] ..."
}
Received response:
Request failed with error:
List posts
requires authentication
Retrieves a complete list of posts from your portal. Includes a "hasMore" attribute indicating if additional posts exist beyond the specified query limit.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/posts" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"limit\": 73,
\"skip\": 4,
\"order_by\": \"updated_at\",
\"order_direction\": \"asc\"
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/posts"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"limit": 73,
"skip": 4,
"order_by": "updated_at",
"order_direction": "asc"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/posts',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'limit' => 73,
'skip' => 4,
'order_by' => 'updated_at',
'order_direction' => 'asc',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/posts'
payload = {
"limit": 73,
"skip": 4,
"order_by": "updated_at",
"order_direction": "asc"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()
Example response (200, success):
{
"data": [
{
"id": "WEukJy",
"uid": "WEukJy-uid",
"title": "Photo upload",
"description_short": "It would be great if I can upload a photo.",
"description": "It would be great if I can upload a photo. This feature would allow users to share visual content directly within the platform.",
"description_changelog": "Added photo upload functionality to enhance user experience.",
"clean_description_changelog": "Added photo upload functionality to enhance user experience.",
"image_main": "https://example.com/images/photo-upload.jpg",
"votes_count": 15,
"comments_count": 3,
"views_count": 100,
"url": "https://your-portal-url.com/p/photo-upload-WEukJy",
"url_edit": "https://your-portal-url.com/admin/posts/edit/WEukJy",
"url_delete": "https://your-portal-url.com/admin/posts/delete/WEukJy",
"created_at": "2023-05-15T10:00:00Z",
"updated_at": "2023-05-16T14:30:00Z",
"latest_status_change_at": "2023-05-16T14:30:00Z",
"latest_status_change_at_formatted": "16 May 2023",
"author": {
"id": "420b8cfb-2c3d-4df2-b6bd-7ac6aae1a14a",
"name": "Madalyn",
"email": "robyn.oconner@example.net",
"role": "member",
"counter_votes": 4,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0
},
"categories": [
{
"id": 3,
"name": "Integration",
"color": "#FFAEA5"
}
],
"status": {
"id": 3,
"name": "💪 Now available",
"color": "#FFCCB6",
"tab_name": "Updates"
},
"section_id": 2,
"moderation_status": "approved",
"conversion": 0.75,
"prioritization_impact": 8,
"prioritization_confidence": 7,
"prioritization_ease": 6,
"prioritization_reach": 9
}
],
"hasMore": false,
"total": 1,
"skip": 0,
"limit": 10
}
Received response:
Request failed with error:
Product Vision
Handles operations related to product vision including viewing, creating, updating, deleting, and generating vision boards.
Get product vision
requires authentication
Retrieves the current product vision.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/product-vision" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/product-vision"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/product-vision',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/product-vision'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 56
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Delete product vision
requires authentication
Removes the current product vision.
Example request:
curl --request DELETE \
"{YOUR_PORTAL_URL}/api/v1/product-vision" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/product-vision"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'{YOUR_PORTAL_URL}/api/v1/product-vision',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/product-vision'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
Create or update product vision
requires authentication
Stores a new product vision or updates the existing one.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/product-vision" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/product-vision"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/product-vision',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/product-vision'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()
Received response:
Request failed with error:
Generate product vision
requires authentication
Creates a product vision board using AI based on the provided description.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/product-vision/generate" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/product-vision/generate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/product-vision/generate',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/product-vision/generate'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()
Received response:
Request failed with error:
Sections
Manages operations related to sections within tabs, including creation, updating, deletion, and reordering.
Create section
requires authentication
Creates a new section within a specified tab.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/sections" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"qyaowoastaoozyubnhwgwqlzhymapkm\",
\"description\": \"pvwarssdasnsrxhjoettsdtkklbelbcpvsdevndbbkjmzurfqgtvtqslpsivmixehlzqw\",
\"icon\": \"ovaugirdvivrfwhhvgspmqscetenzlbcepfs\",
\"tab_id\": 0,
\"after_id\": 0,
\"color\": \"yw\"
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/sections"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "qyaowoastaoozyubnhwgwqlzhymapkm",
"description": "pvwarssdasnsrxhjoettsdtkklbelbcpvsdevndbbkjmzurfqgtvtqslpsivmixehlzqw",
"icon": "ovaugirdvivrfwhhvgspmqscetenzlbcepfs",
"tab_id": 0,
"after_id": 0,
"color": "yw"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/sections',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'qyaowoastaoozyubnhwgwqlzhymapkm',
'description' => 'pvwarssdasnsrxhjoettsdtkklbelbcpvsdevndbbkjmzurfqgtvtqslpsivmixehlzqw',
'icon' => 'ovaugirdvivrfwhhvgspmqscetenzlbcepfs',
'tab_id' => 0,
'after_id' => 0,
'color' => 'yw',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/sections'
payload = {
"title": "qyaowoastaoozyubnhwgwqlzhymapkm",
"description": "pvwarssdasnsrxhjoettsdtkklbelbcpvsdevndbbkjmzurfqgtvtqslpsivmixehlzqw",
"icon": "ovaugirdvivrfwhhvgspmqscetenzlbcepfs",
"tab_id": 0,
"after_id": 0,
"color": "yw"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"data": {
"id": 7,
"tab_id": 6,
"title": "✍️ In Progress",
"description": null,
"icon": null,
"parent_id": null,
"order": 1,
"created_at": "2021-02-02T07:43:37.000000Z",
"updated_at": "2024-04-24T09:23:50.000000Z",
"is_hidden_for_users": 0,
"color": null
}
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"title": [
"The title has already been taken."
]
}
}
Received response:
Request failed with error:
Update Section
requires authentication
Modifies the details of an existing section.
Example request:
curl --request PUT \
"{YOUR_PORTAL_URL}/api/v1/sections/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"ckrwjmgrkfvbmkhwgvmyml\",
\"description\": \"bxnfcrhksaegkthpkkno\",
\"icon\": \"\",
\"is_hidden_for_users\": false,
\"color\": \"wlhpy\"
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/sections/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "ckrwjmgrkfvbmkhwgvmyml",
"description": "bxnfcrhksaegkthpkkno",
"icon": "",
"is_hidden_for_users": false,
"color": "wlhpy"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'{YOUR_PORTAL_URL}/api/v1/sections/10',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'ckrwjmgrkfvbmkhwgvmyml',
'description' => 'bxnfcrhksaegkthpkkno',
'icon' => '',
'is_hidden_for_users' => false,
'color' => 'wlhpy',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/sections/10'
payload = {
"title": "ckrwjmgrkfvbmkhwgvmyml",
"description": "bxnfcrhksaegkthpkkno",
"icon": "",
"is_hidden_for_users": false,
"color": "wlhpy"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"data": {
"id": 7,
"tab_id": 6,
"title": "✍️ In Progress",
"description": null,
"icon": null,
"parent_id": null,
"order": 1,
"created_at": "2021-02-02T07:43:37.000000Z",
"updated_at": "2024-04-24T09:23:50.000000Z",
"is_hidden_for_users": 0,
"color": null
}
}
Example response (404):
{
"message": "No query results for model [App\\Section] ..."
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"title": [
"The title must be given."
]
}
}
Received response:
Request failed with error:
Delete Section
requires authentication
Removes a specified section from the database.
Example request:
curl --request DELETE \
"{YOUR_PORTAL_URL}/api/v1/sections/13" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/sections/13"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'{YOUR_PORTAL_URL}/api/v1/sections/13',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/sections/13'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Example response (200):
{}
Example response (404):
{
"message": "No query results for model [App\\Section] ..."
}
Received response:
Request failed with error:
List sections
requires authentication
Retrieves all sections for a specified tab.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/sections" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/sections"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/sections',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/sections'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"data": {
"id": 7,
"tab_id": 6,
"title": "✍️ In Progress",
"description": null,
"icon": null,
"parent_id": null,
"order": 1,
"created_at": "2021-02-02T07:43:37.000000Z",
"updated_at": "2024-04-24T09:23:50.000000Z",
"is_hidden_for_users": 0,
"color": null
}
}
Received response:
Request failed with error:
Get Child Sections
requires authentication
Retrieves all child sections for a given parent section.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/sections/9/children" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/sections/9/children"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/sections/9/children',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/sections/9/children'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"data": [
{
"id": 1,
"title": "Child Section 1",
"description": "This is a child section",
"icon": "folder",
"parent_id": 5,
"order": 1
},
{
"id": 2,
"title": "Child Section 2",
"description": "Another child section",
"icon": "file",
"parent_id": 5,
"order": 2
}
]
}
Received response:
Request failed with error:
Statuses
Statuses can be used to track the status of posts. Each post gets one status.
List statuses
requires authentication
Lists all statuses.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/statuses" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/statuses"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/statuses',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/statuses'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"data": [
{
"id": 1,
"name": "Gathering votes",
"color": "#DCD9F8",
"order": 0,
"tab_id": 1,
"tab_name": "Wish list",
"text_color": "#464362"
},
{
"id": 1,
"name": "Gathering votes",
"color": "#DCD9F8",
"order": 0,
"tab_id": 1,
"tab_name": "Wish list",
"text_color": "#464362"
}
]
}
Received response:
Request failed with error:
Create status
requires authentication
Creates a new status.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/statuses" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"color\": \"#I7TLq3$\\/m\"
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/statuses"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"color": "#I7TLq3$\/m"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/statuses',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'color' => '#I7TLq3$/m',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/statuses'
payload = {
"color": "#I7TLq3$\/m"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"data": {
"id": 1,
"name": "Gathering votes",
"color": "#DCD9F8",
"order": 0,
"tab_id": 1,
"tab_name": "Wish list",
"text_color": "#464362"
}
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name has already been taken."
]
}
Received response:
Request failed with error:
Update status
requires authentication
Updates the details of a status.
Example request:
curl --request PUT \
"{YOUR_PORTAL_URL}/api/v1/statuses/9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"color\": \"#59uIBk$\\/m\"
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/statuses/9"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"color": "#59uIBk$\/m"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'{YOUR_PORTAL_URL}/api/v1/statuses/9',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'color' => '#59uIBk$/m',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/statuses/9'
payload = {
"color": "#59uIBk$\/m"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"data": {
"id": 1,
"name": "Gathering votes",
"color": "#DCD9F8",
"order": 0,
"tab_id": 1,
"tab_name": "Wish list",
"text_color": "#464362"
}
}
Example response (404):
{
"message": "No query results for model [App\\Status] ..."
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name has already been taken."
]
}
Received response:
Request failed with error:
Delete status
requires authentication
Deletes a specified status.
Example request:
curl --request DELETE \
"{YOUR_PORTAL_URL}/api/v1/statuses/12" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/statuses/12"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'{YOUR_PORTAL_URL}/api/v1/statuses/12',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/statuses/12'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Example response (200):
{}
Example response (404):
{
"message": "No query results for model [App\\Status] ..."
}
Received response:
Request failed with error:
Tabs
API endpoints for managing tabs.
Get tab
requires authentication
Retrieves the details of a specific tab by its slug.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/tabs/0" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/tabs/0"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/tabs/0',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/tabs/0'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"data": {
"id": 1,
"name": "General",
"slug": "general",
"created_at": "2023-01-01T00:00:00Z",
"updated_at": "2023-01-01T00:00:00Z"
}
}
Example response (404):
{
"message": "No query results for model [App\\Tab] general"
}
Received response:
Request failed with error:
List tabs
requires authentication
Retrieves a collection of all tabs.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/tabs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/tabs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/tabs',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/tabs'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"data": [
{
"id": 1,
"name": "General",
"slug": "general",
"created_at": "2023-01-01T00:00:00Z",
"updated_at": "2023-01-01T00:00:00Z"
},
{
"id": 2,
"name": "Support",
"slug": "support",
"created_at": "2023-01-02T00:00:00Z",
"updated_at": "2023-01-02T00:00:00Z"
}
]
}
Received response:
Request failed with error:
Tags
Tags can be used to label and categorize posts. Tags are not visible for your users. Posts can have multiple tags.
List tags
requires authentication
Lists all tags of your portal.
Create tag
requires authentication
Creates a new tag in your portal.
Update tag
requires authentication
Updates the details of a tag.
Delete tag
requires authentication
Deletes a specified tag.
Users
Users can create posts, votes, and comments. You can create and manage users from the API.
Find by email
requires authentication
Retrieves the details of a specified user by email.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/users/find_by_email" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"arumlzrfrmaciwrcommjxqvzsycjsahzsbti\"
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/users/find_by_email"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "arumlzrfrmaciwrcommjxqvzsycjsahzsbti"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/users/find_by_email',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'arumlzrfrmaciwrcommjxqvzsycjsahzsbti',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/users/find_by_email'
payload = {
"email": "arumlzrfrmaciwrcommjxqvzsycjsahzsbti"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"data": {
"id": "f1e053aa-9e07-44e1-98ab-c2a1e69f8a4c",
"name": "Marcelino",
"email": "franecki.izaiah@example.net",
"role": "member",
"profile_url": "{YOUR-PORTAL-URL}/user/profile/123456",
"avatar_small_url": "https://www.gravatar.com/avatar/1be2d3aa334b4302f2de6e11ef9f4854?s=60&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/Marcelino/60/55CBCD/003537",
"counter_votes": 0,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0,
"created_at": "2024-12-03T07:59:47.000000Z",
"is_blocked": null,
"verified": null,
"admin_accepted": null,
"sso_uid": null,
"sso_avatar_url": null,
"company": null,
"segment_1": null,
"segment_2": null,
"segment_3": null,
"segment_4": null,
"segment_5": null,
"segment_6": null,
"segment_7": null,
"segment_8": null,
"segment_9": null,
"segment_10": null,
"segment_mrr": null,
"segment_arr": null,
"segment_ltv": null,
"email_unsubscribed_at": null
}
}
Example response (404):
{
"message": "User not found"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"role": [
"The email must be a valid email address."
]
}
Received response:
Request failed with error:
List users
requires authentication
Lists all users of your portal.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/users" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"limit\": 28,
\"skip\": 7
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/users"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"limit": 28,
"skip": 7
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/users',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'limit' => 28,
'skip' => 7,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/users'
payload = {
"limit": 28,
"skip": 7
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"data": [
{
"id": "afc95b46-7f77-4db3-9e71-a691efb14d76",
"name": "Wilfrid",
"email": "dominique03@example.com",
"role": "member",
"profile_url": "{YOUR-PORTAL-URL}/user/profile/123456",
"avatar_small_url": "https://www.gravatar.com/avatar/5e689f6f7370f1e17fcb200fe0f02fd3?s=60&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/Wilfrid/60/B6CFB6/203920",
"counter_votes": 0,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0,
"created_at": "2024-12-03T07:59:47.000000Z",
"is_blocked": null,
"verified": null,
"admin_accepted": null,
"sso_uid": null,
"sso_avatar_url": null,
"company": null,
"segment_1": null,
"segment_2": null,
"segment_3": null,
"segment_4": null,
"segment_5": null,
"segment_6": null,
"segment_7": null,
"segment_8": null,
"segment_9": null,
"segment_10": null,
"segment_mrr": null,
"segment_arr": null,
"segment_ltv": null,
"email_unsubscribed_at": null
},
{
"id": "cd071d9c-f20b-47d8-8c80-2edd4dc6c600",
"name": "Glenna",
"email": "elody50@example.com",
"role": "member",
"profile_url": "{YOUR-PORTAL-URL}/user/profile/123456",
"avatar_small_url": "https://www.gravatar.com/avatar/d52a2cf1fc165f16c86d99276e0ae29a?s=60&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/Glenna/60/F3B0C3/5d1a2d",
"counter_votes": 0,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0,
"created_at": "2024-12-03T07:59:47.000000Z",
"is_blocked": null,
"verified": null,
"admin_accepted": null,
"sso_uid": null,
"sso_avatar_url": null,
"company": null,
"segment_1": null,
"segment_2": null,
"segment_3": null,
"segment_4": null,
"segment_5": null,
"segment_6": null,
"segment_7": null,
"segment_8": null,
"segment_9": null,
"segment_10": null,
"segment_mrr": null,
"segment_arr": null,
"segment_ltv": null,
"email_unsubscribed_at": null
}
]
}
Received response:
Request failed with error:
Create user
requires authentication
Creates a new user in your portal. You can either provide a password, or you can invite the user.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/users" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"lceklzhnoykclz\",
\"role\": \"member\",
\"name\": \"livzldgihqytrrfrelvnolwuvsmvmxwzmphqfanvmqcrupclwnntpjmxbxeospkjwufoywvmsm\",
\"invitation_message\": \"ztdzhfpswvbbgcfmovtijbdfsekeyadaeuksdotdbwcchqbgzctrulytibucffcbjutjjmxzxuzkcfoosbidyaozlkrobfgzggtyxrqrrihtqgyqjhpdsswqslclkrcpebnnwmjblousezsfsrqjhcucohpdxbegdrscvocwunxrgggicwuhptpuqfyltlkcjdgafcermekqohowqdfiufjguwrcvhdlyveumhwokhzqepciqlledhkeqslkzpkalwzazbzjxlsxpjiugzukfkxfqrjqpoxdxjzlhmtjafxfljexhupfuzkkynhloottckntzakrphnjvrnfzlorgtaceqrhyqxctaggfohescjvzwjakowtzbhqxloqqewviepqchqjjyobkqstrivfjyrsubqkdadnqqhglxauwryyqxsyhtjpsjecdebqzizceyjymvstfsjhyfsxxlzrptguqznoiakbtuzsqezwdaddlrdbkbpsuttlmrnifoncbivyjpmlgjismzysxjplajzi\",
\"password\": \"rudk\",
\"created_at\": \"2024-12-03T07:59:47\",
\"is_blocked\": \"1\",
\"verified\": \"0\",
\"admin_accepted\": \"0\",
\"sso_uid\": \"wysviyddnjfmolxhzejioyqsgapzylrurs\",
\"sso_avatar_url\": \"mzngiqdeqoudi\",
\"company\": \"eqdlewqipznlzhquiafsbtqoryzkxdpeybmrendp\",
\"segment_1\": \"qephxmjkyhbgxupjgkvhzairciytnwacxtfeotezosfbwtgogycnhjgyfqcunlwwgbnplhodbxlpzidbxwgthaxgdnjlgyxbsgutayzzzrmcpuhsuizcziubxawttpzexnhpriqsyggxeywwrrtygwpnmkhygdea\",
\"segment_2\": \"krbukuwpmqdqneirgetxjzjxsqqqhpwylsskzthxyobverhdauqzsmeyxbesobetmsoxyfztoeqliesiitkeglteolrmqcplseapnwnynsaliqygojzuuabbouqfisfzrnvfcmbfsymlkwgelfnnwhbfqcqkvjbpcuadzykshz\",
\"segment_3\": \"fptsdvuwvradelksnipimyradnerkssjungdobrxnpeloyqzijvkqawtntiajfnlhnskxnhuxxryqbtssbfukqsihrpyydozkwsspukhtapxmmyvxpomrmyxdafmuqnuizeekvuiatjckjwhbsocsrrxjkadfpeachdkbbgsojnluznqpdwkyvxfx\",
\"segment_4\": \"rqewesbyhwsqsecwrptycfcariycojfnsplchtcjjtjxulmzxxzoxnwfmhsqammeakrxzxgtpjniygavsxphjtbn\",
\"segment_5\": \"thnskprzwenpzvypcqntoescwktrdhzflfnlptcezhbpdlpencwohvkqshruuvyxcyuhkidfgsehalywdltwkhrcnqglpjzeflqxahuwbfzkxjcmtvtdyiiemydjrte\",
\"segment_6\": \"fagvfgpddcgcgeuwtsziwkadamwkvkvsvokiubyeakdknxawpvdpmspnpbmabkulzqeocplxuymccodiyebrbduedjpekkfonraglcwodgjqjsaxahnuhgypowpbdysfwtclhshpfgmwildccpwdaychffyepkjigpzbiwybjvukyjronkdqigiqetlktvlxsjyrlltyzofdtydbqtete\",
\"segment_7\": \"hsaycpppxnsgor\",
\"segment_8\": \"iuwujpsftraoxtnjkgnddxuguczntfppkgqecyobecvkbwptjhmbsfykdevmktpluydpzhkinjbyaquawgsrkwslsxdgiespfaopycxlceztjvpcwnjzpxbspeadeanlfqqynybsifznqceweiudgnpwuuvzrwyvicorbicbqh\",
\"segment_9\": \"prozgkwmweiwcoccpjvkyftrohajmouvrppdnmucosfujdsskgsyksqynfogqmsdojofcdtbbhsoweizsgwthktasndqvfzerktzvvpugxjegpbhnainxrjoplqemzhjcvciznyhygkpkkuwhksbonblyihyuuwyiekracjnyfwfbqgssbaoqedafhmxtdjsbnnzbz\",
\"segment_10\": \"mvzscyiokuvaagkwapoudusgfyvygwoxcubtsnotkvzxkdwnnhoeynglrosdcqxfzsqpysgcnrwszhbkaalhkdtswqwoktvhtinjjjnxkfvwhqlwyvfdyhtvwoirwowhgkcordfnelxnbjqwybaagjlyqoobwvcbtmfgywxjayosdjzknqocfecevjuubgzmrcqefgdgfohpvitlkgjjabmowyocw\",
\"segment_mrr\": 1.79,
\"segment_arr\": 32767837.2638372,
\"segment_ltv\": 52.6181,
\"email_unsubscribed_at\": \"2024-12-03T07:59:47\"
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/users"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "lceklzhnoykclz",
"role": "member",
"name": "livzldgihqytrrfrelvnolwuvsmvmxwzmphqfanvmqcrupclwnntpjmxbxeospkjwufoywvmsm",
"invitation_message": "ztdzhfpswvbbgcfmovtijbdfsekeyadaeuksdotdbwcchqbgzctrulytibucffcbjutjjmxzxuzkcfoosbidyaozlkrobfgzggtyxrqrrihtqgyqjhpdsswqslclkrcpebnnwmjblousezsfsrqjhcucohpdxbegdrscvocwunxrgggicwuhptpuqfyltlkcjdgafcermekqohowqdfiufjguwrcvhdlyveumhwokhzqepciqlledhkeqslkzpkalwzazbzjxlsxpjiugzukfkxfqrjqpoxdxjzlhmtjafxfljexhupfuzkkynhloottckntzakrphnjvrnfzlorgtaceqrhyqxctaggfohescjvzwjakowtzbhqxloqqewviepqchqjjyobkqstrivfjyrsubqkdadnqqhglxauwryyqxsyhtjpsjecdebqzizceyjymvstfsjhyfsxxlzrptguqznoiakbtuzsqezwdaddlrdbkbpsuttlmrnifoncbivyjpmlgjismzysxjplajzi",
"password": "rudk",
"created_at": "2024-12-03T07:59:47",
"is_blocked": "1",
"verified": "0",
"admin_accepted": "0",
"sso_uid": "wysviyddnjfmolxhzejioyqsgapzylrurs",
"sso_avatar_url": "mzngiqdeqoudi",
"company": "eqdlewqipznlzhquiafsbtqoryzkxdpeybmrendp",
"segment_1": "qephxmjkyhbgxupjgkvhzairciytnwacxtfeotezosfbwtgogycnhjgyfqcunlwwgbnplhodbxlpzidbxwgthaxgdnjlgyxbsgutayzzzrmcpuhsuizcziubxawttpzexnhpriqsyggxeywwrrtygwpnmkhygdea",
"segment_2": "krbukuwpmqdqneirgetxjzjxsqqqhpwylsskzthxyobverhdauqzsmeyxbesobetmsoxyfztoeqliesiitkeglteolrmqcplseapnwnynsaliqygojzuuabbouqfisfzrnvfcmbfsymlkwgelfnnwhbfqcqkvjbpcuadzykshz",
"segment_3": "fptsdvuwvradelksnipimyradnerkssjungdobrxnpeloyqzijvkqawtntiajfnlhnskxnhuxxryqbtssbfukqsihrpyydozkwsspukhtapxmmyvxpomrmyxdafmuqnuizeekvuiatjckjwhbsocsrrxjkadfpeachdkbbgsojnluznqpdwkyvxfx",
"segment_4": "rqewesbyhwsqsecwrptycfcariycojfnsplchtcjjtjxulmzxxzoxnwfmhsqammeakrxzxgtpjniygavsxphjtbn",
"segment_5": "thnskprzwenpzvypcqntoescwktrdhzflfnlptcezhbpdlpencwohvkqshruuvyxcyuhkidfgsehalywdltwkhrcnqglpjzeflqxahuwbfzkxjcmtvtdyiiemydjrte",
"segment_6": "fagvfgpddcgcgeuwtsziwkadamwkvkvsvokiubyeakdknxawpvdpmspnpbmabkulzqeocplxuymccodiyebrbduedjpekkfonraglcwodgjqjsaxahnuhgypowpbdysfwtclhshpfgmwildccpwdaychffyepkjigpzbiwybjvukyjronkdqigiqetlktvlxsjyrlltyzofdtydbqtete",
"segment_7": "hsaycpppxnsgor",
"segment_8": "iuwujpsftraoxtnjkgnddxuguczntfppkgqecyobecvkbwptjhmbsfykdevmktpluydpzhkinjbyaquawgsrkwslsxdgiespfaopycxlceztjvpcwnjzpxbspeadeanlfqqynybsifznqceweiudgnpwuuvzrwyvicorbicbqh",
"segment_9": "prozgkwmweiwcoccpjvkyftrohajmouvrppdnmucosfujdsskgsyksqynfogqmsdojofcdtbbhsoweizsgwthktasndqvfzerktzvvpugxjegpbhnainxrjoplqemzhjcvciznyhygkpkkuwhksbonblyihyuuwyiekracjnyfwfbqgssbaoqedafhmxtdjsbnnzbz",
"segment_10": "mvzscyiokuvaagkwapoudusgfyvygwoxcubtsnotkvzxkdwnnhoeynglrosdcqxfzsqpysgcnrwszhbkaalhkdtswqwoktvhtinjjjnxkfvwhqlwyvfdyhtvwoirwowhgkcordfnelxnbjqwybaagjlyqoobwvcbtmfgywxjayosdjzknqocfecevjuubgzmrcqefgdgfohpvitlkgjjabmowyocw",
"segment_mrr": 1.79,
"segment_arr": 32767837.2638372,
"segment_ltv": 52.6181,
"email_unsubscribed_at": "2024-12-03T07:59:47"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/users',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'lceklzhnoykclz',
'role' => 'member',
'name' => 'livzldgihqytrrfrelvnolwuvsmvmxwzmphqfanvmqcrupclwnntpjmxbxeospkjwufoywvmsm',
'invitation_message' => 'ztdzhfpswvbbgcfmovtijbdfsekeyadaeuksdotdbwcchqbgzctrulytibucffcbjutjjmxzxuzkcfoosbidyaozlkrobfgzggtyxrqrrihtqgyqjhpdsswqslclkrcpebnnwmjblousezsfsrqjhcucohpdxbegdrscvocwunxrgggicwuhptpuqfyltlkcjdgafcermekqohowqdfiufjguwrcvhdlyveumhwokhzqepciqlledhkeqslkzpkalwzazbzjxlsxpjiugzukfkxfqrjqpoxdxjzlhmtjafxfljexhupfuzkkynhloottckntzakrphnjvrnfzlorgtaceqrhyqxctaggfohescjvzwjakowtzbhqxloqqewviepqchqjjyobkqstrivfjyrsubqkdadnqqhglxauwryyqxsyhtjpsjecdebqzizceyjymvstfsjhyfsxxlzrptguqznoiakbtuzsqezwdaddlrdbkbpsuttlmrnifoncbivyjpmlgjismzysxjplajzi',
'password' => 'rudk',
'created_at' => '2024-12-03T07:59:47',
'is_blocked' => '1',
'verified' => '0',
'admin_accepted' => '0',
'sso_uid' => 'wysviyddnjfmolxhzejioyqsgapzylrurs',
'sso_avatar_url' => 'mzngiqdeqoudi',
'company' => 'eqdlewqipznlzhquiafsbtqoryzkxdpeybmrendp',
'segment_1' => 'qephxmjkyhbgxupjgkvhzairciytnwacxtfeotezosfbwtgogycnhjgyfqcunlwwgbnplhodbxlpzidbxwgthaxgdnjlgyxbsgutayzzzrmcpuhsuizcziubxawttpzexnhpriqsyggxeywwrrtygwpnmkhygdea',
'segment_2' => 'krbukuwpmqdqneirgetxjzjxsqqqhpwylsskzthxyobverhdauqzsmeyxbesobetmsoxyfztoeqliesiitkeglteolrmqcplseapnwnynsaliqygojzuuabbouqfisfzrnvfcmbfsymlkwgelfnnwhbfqcqkvjbpcuadzykshz',
'segment_3' => 'fptsdvuwvradelksnipimyradnerkssjungdobrxnpeloyqzijvkqawtntiajfnlhnskxnhuxxryqbtssbfukqsihrpyydozkwsspukhtapxmmyvxpomrmyxdafmuqnuizeekvuiatjckjwhbsocsrrxjkadfpeachdkbbgsojnluznqpdwkyvxfx',
'segment_4' => 'rqewesbyhwsqsecwrptycfcariycojfnsplchtcjjtjxulmzxxzoxnwfmhsqammeakrxzxgtpjniygavsxphjtbn',
'segment_5' => 'thnskprzwenpzvypcqntoescwktrdhzflfnlptcezhbpdlpencwohvkqshruuvyxcyuhkidfgsehalywdltwkhrcnqglpjzeflqxahuwbfzkxjcmtvtdyiiemydjrte',
'segment_6' => 'fagvfgpddcgcgeuwtsziwkadamwkvkvsvokiubyeakdknxawpvdpmspnpbmabkulzqeocplxuymccodiyebrbduedjpekkfonraglcwodgjqjsaxahnuhgypowpbdysfwtclhshpfgmwildccpwdaychffyepkjigpzbiwybjvukyjronkdqigiqetlktvlxsjyrlltyzofdtydbqtete',
'segment_7' => 'hsaycpppxnsgor',
'segment_8' => 'iuwujpsftraoxtnjkgnddxuguczntfppkgqecyobecvkbwptjhmbsfykdevmktpluydpzhkinjbyaquawgsrkwslsxdgiespfaopycxlceztjvpcwnjzpxbspeadeanlfqqynybsifznqceweiudgnpwuuvzrwyvicorbicbqh',
'segment_9' => 'prozgkwmweiwcoccpjvkyftrohajmouvrppdnmucosfujdsskgsyksqynfogqmsdojofcdtbbhsoweizsgwthktasndqvfzerktzvvpugxjegpbhnainxrjoplqemzhjcvciznyhygkpkkuwhksbonblyihyuuwyiekracjnyfwfbqgssbaoqedafhmxtdjsbnnzbz',
'segment_10' => 'mvzscyiokuvaagkwapoudusgfyvygwoxcubtsnotkvzxkdwnnhoeynglrosdcqxfzsqpysgcnrwszhbkaalhkdtswqwoktvhtinjjjnxkfvwhqlwyvfdyhtvwoirwowhgkcordfnelxnbjqwybaagjlyqoobwvcbtmfgywxjayosdjzknqocfecevjuubgzmrcqefgdgfohpvitlkgjjabmowyocw',
'segment_mrr' => 1.79,
'segment_arr' => 32767837.2638372,
'segment_ltv' => 52.6181,
'email_unsubscribed_at' => '2024-12-03T07:59:47',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/users'
payload = {
"email": "lceklzhnoykclz",
"role": "member",
"name": "livzldgihqytrrfrelvnolwuvsmvmxwzmphqfanvmqcrupclwnntpjmxbxeospkjwufoywvmsm",
"invitation_message": "ztdzhfpswvbbgcfmovtijbdfsekeyadaeuksdotdbwcchqbgzctrulytibucffcbjutjjmxzxuzkcfoosbidyaozlkrobfgzggtyxrqrrihtqgyqjhpdsswqslclkrcpebnnwmjblousezsfsrqjhcucohpdxbegdrscvocwunxrgggicwuhptpuqfyltlkcjdgafcermekqohowqdfiufjguwrcvhdlyveumhwokhzqepciqlledhkeqslkzpkalwzazbzjxlsxpjiugzukfkxfqrjqpoxdxjzlhmtjafxfljexhupfuzkkynhloottckntzakrphnjvrnfzlorgtaceqrhyqxctaggfohescjvzwjakowtzbhqxloqqewviepqchqjjyobkqstrivfjyrsubqkdadnqqhglxauwryyqxsyhtjpsjecdebqzizceyjymvstfsjhyfsxxlzrptguqznoiakbtuzsqezwdaddlrdbkbpsuttlmrnifoncbivyjpmlgjismzysxjplajzi",
"password": "rudk",
"created_at": "2024-12-03T07:59:47",
"is_blocked": "1",
"verified": "0",
"admin_accepted": "0",
"sso_uid": "wysviyddnjfmolxhzejioyqsgapzylrurs",
"sso_avatar_url": "mzngiqdeqoudi",
"company": "eqdlewqipznlzhquiafsbtqoryzkxdpeybmrendp",
"segment_1": "qephxmjkyhbgxupjgkvhzairciytnwacxtfeotezosfbwtgogycnhjgyfqcunlwwgbnplhodbxlpzidbxwgthaxgdnjlgyxbsgutayzzzrmcpuhsuizcziubxawttpzexnhpriqsyggxeywwrrtygwpnmkhygdea",
"segment_2": "krbukuwpmqdqneirgetxjzjxsqqqhpwylsskzthxyobverhdauqzsmeyxbesobetmsoxyfztoeqliesiitkeglteolrmqcplseapnwnynsaliqygojzuuabbouqfisfzrnvfcmbfsymlkwgelfnnwhbfqcqkvjbpcuadzykshz",
"segment_3": "fptsdvuwvradelksnipimyradnerkssjungdobrxnpeloyqzijvkqawtntiajfnlhnskxnhuxxryqbtssbfukqsihrpyydozkwsspukhtapxmmyvxpomrmyxdafmuqnuizeekvuiatjckjwhbsocsrrxjkadfpeachdkbbgsojnluznqpdwkyvxfx",
"segment_4": "rqewesbyhwsqsecwrptycfcariycojfnsplchtcjjtjxulmzxxzoxnwfmhsqammeakrxzxgtpjniygavsxphjtbn",
"segment_5": "thnskprzwenpzvypcqntoescwktrdhzflfnlptcezhbpdlpencwohvkqshruuvyxcyuhkidfgsehalywdltwkhrcnqglpjzeflqxahuwbfzkxjcmtvtdyiiemydjrte",
"segment_6": "fagvfgpddcgcgeuwtsziwkadamwkvkvsvokiubyeakdknxawpvdpmspnpbmabkulzqeocplxuymccodiyebrbduedjpekkfonraglcwodgjqjsaxahnuhgypowpbdysfwtclhshpfgmwildccpwdaychffyepkjigpzbiwybjvukyjronkdqigiqetlktvlxsjyrlltyzofdtydbqtete",
"segment_7": "hsaycpppxnsgor",
"segment_8": "iuwujpsftraoxtnjkgnddxuguczntfppkgqecyobecvkbwptjhmbsfykdevmktpluydpzhkinjbyaquawgsrkwslsxdgiespfaopycxlceztjvpcwnjzpxbspeadeanlfqqynybsifznqceweiudgnpwuuvzrwyvicorbicbqh",
"segment_9": "prozgkwmweiwcoccpjvkyftrohajmouvrppdnmucosfujdsskgsyksqynfogqmsdojofcdtbbhsoweizsgwthktasndqvfzerktzvvpugxjegpbhnainxrjoplqemzhjcvciznyhygkpkkuwhksbonblyihyuuwyiekracjnyfwfbqgssbaoqedafhmxtdjsbnnzbz",
"segment_10": "mvzscyiokuvaagkwapoudusgfyvygwoxcubtsnotkvzxkdwnnhoeynglrosdcqxfzsqpysgcnrwszhbkaalhkdtswqwoktvhtinjjjnxkfvwhqlwyvfdyhtvwoirwowhgkcordfnelxnbjqwybaagjlyqoobwvcbtmfgywxjayosdjzknqocfecevjuubgzmrcqefgdgfohpvitlkgjjabmowyocw",
"segment_mrr": 1.79,
"segment_arr": 32767837.2638372,
"segment_ltv": 52.6181,
"email_unsubscribed_at": "2024-12-03T07:59:47"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"data": {
"id": "7200088f-d1b8-41aa-bace-c9ec05eb27ba",
"name": "Sandy",
"email": "krystel63@example.com",
"role": "member",
"profile_url": "{YOUR-PORTAL-URL}/user/profile/123456",
"avatar_small_url": "https://www.gravatar.com/avatar/1efa0314a1a2b817cb8fdddcdb5cd58c?s=60&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/Sandy/60/CBAACB/351435",
"counter_votes": 0,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0,
"created_at": "2024-12-03T07:59:47.000000Z",
"is_blocked": null,
"verified": null,
"admin_accepted": null,
"sso_uid": null,
"sso_avatar_url": null,
"company": null,
"segment_1": null,
"segment_2": null,
"segment_3": null,
"segment_4": null,
"segment_5": null,
"segment_6": null,
"segment_7": null,
"segment_8": null,
"segment_9": null,
"segment_10": null,
"segment_mrr": null,
"segment_arr": null,
"segment_ltv": null,
"email_unsubscribed_at": null
}
}
Example response (422):
{
"message": "User already exists"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"role": [
"The selected role is invalid."
]
}
Received response:
Request failed with error:
Get user
requires authentication
Retrieves the details of a specified user.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/users/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/users/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/users/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/users/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"data": {
"id": "2f4407d1-877a-4493-819b-5b60adda5e40",
"name": "Alison",
"email": "twila19@example.com",
"role": "member",
"profile_url": "{YOUR-PORTAL-URL}/user/profile/123456",
"avatar_small_url": "https://www.gravatar.com/avatar/9eb0e9a3b3611383ce26f9a0bc634f32?s=60&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/Alison/60/F3B0C3/5d1a2d",
"counter_votes": 0,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0,
"created_at": "2024-12-03T07:59:47.000000Z",
"is_blocked": null,
"verified": null,
"admin_accepted": null,
"sso_uid": null,
"sso_avatar_url": null,
"company": null,
"segment_1": null,
"segment_2": null,
"segment_3": null,
"segment_4": null,
"segment_5": null,
"segment_6": null,
"segment_7": null,
"segment_8": null,
"segment_9": null,
"segment_10": null,
"segment_mrr": null,
"segment_arr": null,
"segment_ltv": null,
"email_unsubscribed_at": null
}
}
Example response (404):
{
"message": "No query results for model [App\\User] ..."
}
Received response:
Request failed with error:
Update user
requires authentication
Updates the details of a specified user.
Example request:
curl --request PUT \
"{YOUR_PORTAL_URL}/api/v1/users/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"fernser@example.org\",
\"role\": \"admin\",
\"name\": \"h\",
\"password\": \"rcz\",
\"created_at\": \"2024-12-03T07:59:47\",
\"is_blocked\": \"true\",
\"verified\": \"true\",
\"admin_accepted\": \"1\",
\"sso_uid\": \"ttqjgakebqquemuwisbsptdclhirzfqnnsipcdbasdrwtrvzqovhzlgluzpyorqvzowaqyikotyyovqpotafotxypqspjezakvvrurgcvvkxybbilfeams\",
\"sso_avatar_url\": \"aukjnpmguuqnyxxfyzdgffefhrxykvjxtummnbtwenpjkrzyierjdfi\",
\"company\": \"cfalnyqqpjtztylvrcfwccqlpxnuarwgtdztzoevwemckhqaxzkdrkvejdnhpuenkpabzddzflhzlbzyrexblixwbuazugixxzgeibiognpplckbdimxtfadhhonfivwuccaujlysslisvubsmeseyngktuvzekhxsnbgjrwksexatzbataqubwnjsvxwjfyznonajss\",
\"segment_1\": \"ftkseryvhaagpwwcdtiaokunvuibvmtlybrjezhoy\",
\"segment_2\": \"xancqvkhimtealrpphhdidquuptbuqnixkunevxkkmebcyyxmvehmtliforrllqglvppxidikagczdehdeuebolkigkhqansnvdbuhkphirsifgoeqxaqhgrlohlgssgxtydesymyewusjkhsftraxjdmnfsqcdnarrbszcwgzelxxfxyvjkkwgbzimqqdvcmwusjlgkiuzykpslzzxgspkril\",
\"segment_3\": \"cqawzpppjfdgjbfmlgihstoiounqesieuiynwpbxndnnajntxtfdfxbssbfgaiordwuejqbdpg\",
\"segment_4\": \"ifrdbnwkvlwgaacnjzdpxdwflilvizwwftncplznhfwkjcum\",
\"segment_5\": \"mnyozmonelnnomokjcpoqaydutctozhmbuuhjgjbmauddomlhdqqhvwlbjbztqvxdhafxfbdkuzvardpqymebymxnqdscuxmhtikiujllovdjknpulvaqldomjxk\",
\"segment_6\": \"wprejnlkqcedsyzgbpyccumsmdjwgszehfjqsvoeckhfkauzplwvegxqrbpbamesifblutmvjnkytcbypgcwxriwrmbrichfsxtwtwnwedwhkswjjxuaifiyfdxwmfjdcbtwutlsjkmjuczteelatjmwgkzccjqdyzmiagociecgtgkdhzrwyvqfgcwomswamdker\",
\"segment_7\": \"bajibzpszjbtglykuivmmmkooyxdjggwpeouifywjzkibynpkmgkofibothhvwhqu\",
\"segment_8\": \"nvmayizudsdmmtspdiwvfbiulzdwzfeoxirwtnupohijntmuvewhipgskxutwtnngjesulotbywqnaomibaiduwnnlkwzqegnuzfceubiaiwudbllxzmgrqmduwigpjlvatlvxtmingkgucqoveflwmghnufaussfvpqywbbwxmgqolllmqbfoezmufzapkqokqpfhcicrfpjbdgehkhqmybm\",
\"segment_9\": \"ftqgohmulcvucuteamrjhjllzggplttklsjhfrjhnmzaxojchjjtxrsmbsfgkeicvjhkhtzflysoqafffwrprfodsdmkghhbeszjycslecujqljfyjibyobrhyplkpmockepzpwhrvmqqdbaekxcojthkdgkpaokxpidvjnuamwraaygzfwinaugdutencdwlurxamtxnijbjznyumxoahpdojvozlmmwfi\",
\"segment_10\": \"qdopdvskyjdkkdfoyjenfeuvoxtyxclxzlkpsjmehxxvabyanbxmybxoyncmbztdwwihgnerkjia\",
\"segment_mrr\": 941.9,
\"segment_arr\": 301985981.0579488,
\"segment_ltv\": 11751234.225223923,
\"email_unsubscribed_at\": \"2024-12-03T07:59:47\"
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/users/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "fernser@example.org",
"role": "admin",
"name": "h",
"password": "rcz",
"created_at": "2024-12-03T07:59:47",
"is_blocked": "true",
"verified": "true",
"admin_accepted": "1",
"sso_uid": "ttqjgakebqquemuwisbsptdclhirzfqnnsipcdbasdrwtrvzqovhzlgluzpyorqvzowaqyikotyyovqpotafotxypqspjezakvvrurgcvvkxybbilfeams",
"sso_avatar_url": "aukjnpmguuqnyxxfyzdgffefhrxykvjxtummnbtwenpjkrzyierjdfi",
"company": "cfalnyqqpjtztylvrcfwccqlpxnuarwgtdztzoevwemckhqaxzkdrkvejdnhpuenkpabzddzflhzlbzyrexblixwbuazugixxzgeibiognpplckbdimxtfadhhonfivwuccaujlysslisvubsmeseyngktuvzekhxsnbgjrwksexatzbataqubwnjsvxwjfyznonajss",
"segment_1": "ftkseryvhaagpwwcdtiaokunvuibvmtlybrjezhoy",
"segment_2": "xancqvkhimtealrpphhdidquuptbuqnixkunevxkkmebcyyxmvehmtliforrllqglvppxidikagczdehdeuebolkigkhqansnvdbuhkphirsifgoeqxaqhgrlohlgssgxtydesymyewusjkhsftraxjdmnfsqcdnarrbszcwgzelxxfxyvjkkwgbzimqqdvcmwusjlgkiuzykpslzzxgspkril",
"segment_3": "cqawzpppjfdgjbfmlgihstoiounqesieuiynwpbxndnnajntxtfdfxbssbfgaiordwuejqbdpg",
"segment_4": "ifrdbnwkvlwgaacnjzdpxdwflilvizwwftncplznhfwkjcum",
"segment_5": "mnyozmonelnnomokjcpoqaydutctozhmbuuhjgjbmauddomlhdqqhvwlbjbztqvxdhafxfbdkuzvardpqymebymxnqdscuxmhtikiujllovdjknpulvaqldomjxk",
"segment_6": "wprejnlkqcedsyzgbpyccumsmdjwgszehfjqsvoeckhfkauzplwvegxqrbpbamesifblutmvjnkytcbypgcwxriwrmbrichfsxtwtwnwedwhkswjjxuaifiyfdxwmfjdcbtwutlsjkmjuczteelatjmwgkzccjqdyzmiagociecgtgkdhzrwyvqfgcwomswamdker",
"segment_7": "bajibzpszjbtglykuivmmmkooyxdjggwpeouifywjzkibynpkmgkofibothhvwhqu",
"segment_8": "nvmayizudsdmmtspdiwvfbiulzdwzfeoxirwtnupohijntmuvewhipgskxutwtnngjesulotbywqnaomibaiduwnnlkwzqegnuzfceubiaiwudbllxzmgrqmduwigpjlvatlvxtmingkgucqoveflwmghnufaussfvpqywbbwxmgqolllmqbfoezmufzapkqokqpfhcicrfpjbdgehkhqmybm",
"segment_9": "ftqgohmulcvucuteamrjhjllzggplttklsjhfrjhnmzaxojchjjtxrsmbsfgkeicvjhkhtzflysoqafffwrprfodsdmkghhbeszjycslecujqljfyjibyobrhyplkpmockepzpwhrvmqqdbaekxcojthkdgkpaokxpidvjnuamwraaygzfwinaugdutencdwlurxamtxnijbjznyumxoahpdojvozlmmwfi",
"segment_10": "qdopdvskyjdkkdfoyjenfeuvoxtyxclxzlkpsjmehxxvabyanbxmybxoyncmbztdwwihgnerkjia",
"segment_mrr": 941.9,
"segment_arr": 301985981.0579488,
"segment_ltv": 11751234.225223923,
"email_unsubscribed_at": "2024-12-03T07:59:47"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'{YOUR_PORTAL_URL}/api/v1/users/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'fernser@example.org',
'role' => 'admin',
'name' => 'h',
'password' => 'rcz',
'created_at' => '2024-12-03T07:59:47',
'is_blocked' => 'true',
'verified' => 'true',
'admin_accepted' => '1',
'sso_uid' => 'ttqjgakebqquemuwisbsptdclhirzfqnnsipcdbasdrwtrvzqovhzlgluzpyorqvzowaqyikotyyovqpotafotxypqspjezakvvrurgcvvkxybbilfeams',
'sso_avatar_url' => 'aukjnpmguuqnyxxfyzdgffefhrxykvjxtummnbtwenpjkrzyierjdfi',
'company' => 'cfalnyqqpjtztylvrcfwccqlpxnuarwgtdztzoevwemckhqaxzkdrkvejdnhpuenkpabzddzflhzlbzyrexblixwbuazugixxzgeibiognpplckbdimxtfadhhonfivwuccaujlysslisvubsmeseyngktuvzekhxsnbgjrwksexatzbataqubwnjsvxwjfyznonajss',
'segment_1' => 'ftkseryvhaagpwwcdtiaokunvuibvmtlybrjezhoy',
'segment_2' => 'xancqvkhimtealrpphhdidquuptbuqnixkunevxkkmebcyyxmvehmtliforrllqglvppxidikagczdehdeuebolkigkhqansnvdbuhkphirsifgoeqxaqhgrlohlgssgxtydesymyewusjkhsftraxjdmnfsqcdnarrbszcwgzelxxfxyvjkkwgbzimqqdvcmwusjlgkiuzykpslzzxgspkril',
'segment_3' => 'cqawzpppjfdgjbfmlgihstoiounqesieuiynwpbxndnnajntxtfdfxbssbfgaiordwuejqbdpg',
'segment_4' => 'ifrdbnwkvlwgaacnjzdpxdwflilvizwwftncplznhfwkjcum',
'segment_5' => 'mnyozmonelnnomokjcpoqaydutctozhmbuuhjgjbmauddomlhdqqhvwlbjbztqvxdhafxfbdkuzvardpqymebymxnqdscuxmhtikiujllovdjknpulvaqldomjxk',
'segment_6' => 'wprejnlkqcedsyzgbpyccumsmdjwgszehfjqsvoeckhfkauzplwvegxqrbpbamesifblutmvjnkytcbypgcwxriwrmbrichfsxtwtwnwedwhkswjjxuaifiyfdxwmfjdcbtwutlsjkmjuczteelatjmwgkzccjqdyzmiagociecgtgkdhzrwyvqfgcwomswamdker',
'segment_7' => 'bajibzpszjbtglykuivmmmkooyxdjggwpeouifywjzkibynpkmgkofibothhvwhqu',
'segment_8' => 'nvmayizudsdmmtspdiwvfbiulzdwzfeoxirwtnupohijntmuvewhipgskxutwtnngjesulotbywqnaomibaiduwnnlkwzqegnuzfceubiaiwudbllxzmgrqmduwigpjlvatlvxtmingkgucqoveflwmghnufaussfvpqywbbwxmgqolllmqbfoezmufzapkqokqpfhcicrfpjbdgehkhqmybm',
'segment_9' => 'ftqgohmulcvucuteamrjhjllzggplttklsjhfrjhnmzaxojchjjtxrsmbsfgkeicvjhkhtzflysoqafffwrprfodsdmkghhbeszjycslecujqljfyjibyobrhyplkpmockepzpwhrvmqqdbaekxcojthkdgkpaokxpidvjnuamwraaygzfwinaugdutencdwlurxamtxnijbjznyumxoahpdojvozlmmwfi',
'segment_10' => 'qdopdvskyjdkkdfoyjenfeuvoxtyxclxzlkpsjmehxxvabyanbxmybxoyncmbztdwwihgnerkjia',
'segment_mrr' => 941.9,
'segment_arr' => 301985981.0579488,
'segment_ltv' => 11751234.225223923,
'email_unsubscribed_at' => '2024-12-03T07:59:47',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/users/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88'
payload = {
"email": "fernser@example.org",
"role": "admin",
"name": "h",
"password": "rcz",
"created_at": "2024-12-03T07:59:47",
"is_blocked": "true",
"verified": "true",
"admin_accepted": "1",
"sso_uid": "ttqjgakebqquemuwisbsptdclhirzfqnnsipcdbasdrwtrvzqovhzlgluzpyorqvzowaqyikotyyovqpotafotxypqspjezakvvrurgcvvkxybbilfeams",
"sso_avatar_url": "aukjnpmguuqnyxxfyzdgffefhrxykvjxtummnbtwenpjkrzyierjdfi",
"company": "cfalnyqqpjtztylvrcfwccqlpxnuarwgtdztzoevwemckhqaxzkdrkvejdnhpuenkpabzddzflhzlbzyrexblixwbuazugixxzgeibiognpplckbdimxtfadhhonfivwuccaujlysslisvubsmeseyngktuvzekhxsnbgjrwksexatzbataqubwnjsvxwjfyznonajss",
"segment_1": "ftkseryvhaagpwwcdtiaokunvuibvmtlybrjezhoy",
"segment_2": "xancqvkhimtealrpphhdidquuptbuqnixkunevxkkmebcyyxmvehmtliforrllqglvppxidikagczdehdeuebolkigkhqansnvdbuhkphirsifgoeqxaqhgrlohlgssgxtydesymyewusjkhsftraxjdmnfsqcdnarrbszcwgzelxxfxyvjkkwgbzimqqdvcmwusjlgkiuzykpslzzxgspkril",
"segment_3": "cqawzpppjfdgjbfmlgihstoiounqesieuiynwpbxndnnajntxtfdfxbssbfgaiordwuejqbdpg",
"segment_4": "ifrdbnwkvlwgaacnjzdpxdwflilvizwwftncplznhfwkjcum",
"segment_5": "mnyozmonelnnomokjcpoqaydutctozhmbuuhjgjbmauddomlhdqqhvwlbjbztqvxdhafxfbdkuzvardpqymebymxnqdscuxmhtikiujllovdjknpulvaqldomjxk",
"segment_6": "wprejnlkqcedsyzgbpyccumsmdjwgszehfjqsvoeckhfkauzplwvegxqrbpbamesifblutmvjnkytcbypgcwxriwrmbrichfsxtwtwnwedwhkswjjxuaifiyfdxwmfjdcbtwutlsjkmjuczteelatjmwgkzccjqdyzmiagociecgtgkdhzrwyvqfgcwomswamdker",
"segment_7": "bajibzpszjbtglykuivmmmkooyxdjggwpeouifywjzkibynpkmgkofibothhvwhqu",
"segment_8": "nvmayizudsdmmtspdiwvfbiulzdwzfeoxirwtnupohijntmuvewhipgskxutwtnngjesulotbywqnaomibaiduwnnlkwzqegnuzfceubiaiwudbllxzmgrqmduwigpjlvatlvxtmingkgucqoveflwmghnufaussfvpqywbbwxmgqolllmqbfoezmufzapkqokqpfhcicrfpjbdgehkhqmybm",
"segment_9": "ftqgohmulcvucuteamrjhjllzggplttklsjhfrjhnmzaxojchjjtxrsmbsfgkeicvjhkhtzflysoqafffwrprfodsdmkghhbeszjycslecujqljfyjibyobrhyplkpmockepzpwhrvmqqdbaekxcojthkdgkpaokxpidvjnuamwraaygzfwinaugdutencdwlurxamtxnijbjznyumxoahpdojvozlmmwfi",
"segment_10": "qdopdvskyjdkkdfoyjenfeuvoxtyxclxzlkpsjmehxxvabyanbxmybxoyncmbztdwwihgnerkjia",
"segment_mrr": 941.9,
"segment_arr": 301985981.0579488,
"segment_ltv": 11751234.225223923,
"email_unsubscribed_at": "2024-12-03T07:59:47"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"data": {
"id": "e0760603-dbba-4211-b769-379408b55c32",
"name": "Kathlyn",
"email": "urban.brown@example.com",
"role": "member",
"profile_url": "{YOUR-PORTAL-URL}/user/profile/123456",
"avatar_small_url": "https://www.gravatar.com/avatar/7b61cff537a33c2e1ad19c7e4ef83b41?s=60&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/Kathlyn/60/FFC8A2/69320c",
"counter_votes": 0,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0,
"created_at": "2024-12-03T07:59:47.000000Z",
"is_blocked": null,
"verified": null,
"admin_accepted": null,
"sso_uid": null,
"sso_avatar_url": null,
"company": null,
"segment_1": null,
"segment_2": null,
"segment_3": null,
"segment_4": null,
"segment_5": null,
"segment_6": null,
"segment_7": null,
"segment_8": null,
"segment_9": null,
"segment_10": null,
"segment_mrr": null,
"segment_arr": null,
"segment_ltv": null,
"email_unsubscribed_at": null
}
}
Example response (404):
{
"message": "No query results for model [App\\User] ..."
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"role": [
"The selected role is invalid."
]
}
Received response:
Request failed with error:
Delete user
requires authentication
Deletes a specified user.
Example request:
curl --request DELETE \
"{YOUR_PORTAL_URL}/api/v1/users/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"delete_all_data\": true
}"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/users/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"delete_all_data": true
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'{YOUR_PORTAL_URL}/api/v1/users/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'delete_all_data' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/users/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88'
payload = {
"delete_all_data": true
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()
Example response (200):
{}
Example response (404):
{
"message": "No query results for model [App\\User] ..."
}
Received response:
Request failed with error:
Votes
Manage votes on your posts.
List votes
requires authentication
Lists all votes of a post.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/votes" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/votes"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/votes',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/votes'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"data": [
{
"created_at": "2020-06-09T14:40:38.000000Z",
"voter": {
"id": "2850e389-2827-4316-a50a-fcdcc6474b5d",
"name": "Jordi",
"email": "descubre@exploradoresdemartech.com",
"role": "member",
"profile_url": "{YOUR-PORTAL-URL}/user/profile/123456",
"avatar_small_url": "https://www.gravatar.com/avatar/72802d9f5cd0781807579a89a3947b75?s=60&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/Jordi/60/CCE2CB/364c35",
"counter_votes": 3,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0,
"created_at": "2020-06-09T14:40:23.000000Z",
"is_blocked": 0,
"verified": false,
"admin_accepted": 1,
"sso_uid": null,
"sso_avatar_url": null,
"company": null,
"segment_1": null,
"segment_2": null,
"segment_3": null,
"segment_4": null,
"segment_5": null,
"segment_6": null,
"segment_7": null,
"segment_8": null,
"segment_9": null,
"segment_10": null,
"segment_mrr": null,
"segment_arr": null,
"segment_ltv": null,
"email_unsubscribed_at": null
}
},
{
"created_at": "2020-06-09T14:40:38.000000Z",
"voter": {
"id": "2850e389-2827-4316-a50a-fcdcc6474b5d",
"name": "Jordi",
"email": "descubre@exploradoresdemartech.com",
"role": "member",
"profile_url": "{YOUR-PORTAL-URL}/user/profile/123456",
"avatar_small_url": "https://www.gravatar.com/avatar/72802d9f5cd0781807579a89a3947b75?s=60&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/Jordi/60/CCE2CB/364c35",
"counter_votes": 3,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0,
"created_at": "2020-06-09T14:40:23.000000Z",
"is_blocked": 0,
"verified": false,
"admin_accepted": 1,
"sso_uid": null,
"sso_avatar_url": null,
"company": null,
"segment_1": null,
"segment_2": null,
"segment_3": null,
"segment_4": null,
"segment_5": null,
"segment_6": null,
"segment_7": null,
"segment_8": null,
"segment_9": null,
"segment_10": null,
"segment_mrr": null,
"segment_arr": null,
"segment_ltv": null,
"email_unsubscribed_at": null
}
}
]
}
Received response:
Request failed with error:
Revoke vote
requires authentication
Revoke a user's vote for a post.
Example request:
curl --request DELETE \
"{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/votes/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/votes/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/votes/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/votes/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Example response (200):
{}
Example response (404):
{
"message": "No query results for model [App\\User] ..."
}
Example response (404):
{
"message": "No query results for model [App\\Post] ..."
}
Example response (422):
{
"message": "Post is not voteable."
}
Example response (422):
{
"message": "User has not voted yet."
}
Received response:
Request failed with error:
Vote
requires authentication
Add the vote of a user to a post.
Example request:
curl --request POST \
"{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/votes/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/votes/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/votes/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/posts/0UFQQh/votes/8cbfbfd6-ecc3-4ec3-8b31-ea76b11c1f88'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()
Example response (200):
{
"data": {
"created_at": "2020-06-09T14:40:38.000000Z",
"voter": {
"id": "2850e389-2827-4316-a50a-fcdcc6474b5d",
"name": "Jordi",
"email": "descubre@exploradoresdemartech.com",
"role": "member",
"profile_url": "{YOUR-PORTAL-URL}/user/profile/123456",
"avatar_small_url": "https://www.gravatar.com/avatar/72802d9f5cd0781807579a89a3947b75?s=60&d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/Jordi/60/CCE2CB/364c35",
"counter_votes": 3,
"counter_comments": 0,
"counter_posts": 0,
"counter_comment_votes": 0,
"created_at": "2020-06-09T14:40:23.000000Z",
"is_blocked": 0,
"verified": false,
"admin_accepted": 1,
"sso_uid": null,
"sso_avatar_url": null,
"company": null,
"segment_1": null,
"segment_2": null,
"segment_3": null,
"segment_4": null,
"segment_5": null,
"segment_6": null,
"segment_7": null,
"segment_8": null,
"segment_9": null,
"segment_10": null,
"segment_mrr": null,
"segment_arr": null,
"segment_ltv": null,
"email_unsubscribed_at": null
}
}
}
Example response (404):
{
"message": "No query results for model [App\\User] ..."
}
Example response (404):
{
"message": "No query results for model [App\\Post] ..."
}
Example response (422):
{
"message": "Post is not voteable."
}
Example response (422):
{
"message": "User has already voted for this post."
}
Received response:
Request failed with error:
Widgets
API endpoints for managing widgets in your portal.
List widgets
requires authentication
Retrieves a collection of all widgets in your portal.
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/widgets" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/widgets"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/widgets',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/widgets'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"data": [
{
"id": "widget1",
"name": "Feedback Widget",
"type": "feedback",
"created_at": "2023-01-01T00:00:00Z",
"updated_at": "2023-01-01T00:00:00Z"
},
{
"id": "widget2",
"name": "Survey Widget",
"type": "survey",
"created_at": "2023-01-02T00:00:00Z",
"updated_at": "2023-01-02T00:00:00Z"
}
]
}
Received response:
Request failed with error:
Get widget
requires authentication
Retrieves the details of a specific widget by its key (ID).
Example request:
curl --request GET \
--get "{YOUR_PORTAL_URL}/api/v1/widgets/widget1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"{YOUR_PORTAL_URL}/api/v1/widgets/widget1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'{YOUR_PORTAL_URL}/api/v1/widgets/widget1',
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = '{YOUR_PORTAL_URL}/api/v1/widgets/widget1'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
{
"data": {
"id": "widget1",
"name": "Feedback Widget",
"type": "feedback",
"created_at": "2023-01-01T00:00:00Z",
"updated_at": "2023-01-01T00:00:00Z"
}
}
Example response (404):
{
"message": "No query results for model [App\\Widget] widget1"
}
Received response:
Request failed with error: