# Defining Trust By An External API?

**URL:** https://meta.discourse.org/t/defining-trust-by-an-external-api/49994
**Category:** Feature
**Created:** [2016年九月11日 22:37 UTC](https://meta.discourse.org/t/defining-trust-by-an-external-api/49994 "2016-09-11T22:37:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Michael\_Ball](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michael_ball/32/121542_2.png) [@Michael\_Ball](https://meta.discourse.org/u/Michael_Ball)
#### Post date: [2016年九月11日 22:37 UTC](https://meta.discourse.org/t/defining-trust-by-an-external-api/49994/1 "2016-09-11T22:37:05Z")

</div>

Hello,

We’re working on setting up an discourse forum for a social networking type site. We would like to be able to define (or at least add as a parameter) Trust levels based on external data, like “Number of Projects Shared” through our site.

Assuming we have an API to get the data we want, is there any way to accomplish this?

If not, would a plugin have the capability to do this? I only briefly explored this option, and I couldn’t find a definite answer.

Thanks!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2016年九月12日 03:04 UTC](https://meta.discourse.org/t/defining-trust-by-an-external-api/49994/2 "2016-09-12T03:04:59Z")

</div>

You could do it either with a plugin or, say a cron job and a script that talks to the API.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年九月12日 04:28 UTC](https://meta.discourse.org/t/defining-trust-by-an-external-api/49994/3 "2016-09-12T04:28:09Z")

</div>

To define trust externally make it so automatic promotions are **impossible** (eg: need too many likes or posts etc…)

Then use the API to configure trust levels for your users as you see fit.

---

<div class="post-metadata">

### Author: ![Michael\_Ball](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michael_ball/32/121542_2.png) [@Michael\_Ball](https://meta.discourse.org/u/Michael_Ball)
#### Post date: [2016年九月12日 06:33 UTC](https://meta.discourse.org/t/defining-trust-by-an-external-api/49994/4 "2016-09-12T06:33:46Z")

</div>

Thanks for the tip about automatic promotions!

A cron job makes a lot of sense. I think I’ll take that approach!
