Skip to content
TORNLIFE More

Check API key level?

Started by DieselBlade [1701621] Wiki Contributor on in API Development.

2 replies · 67 views · thread synced · 4 days ago · View on torn.com
About this thread

Posts archived: 3 / 3 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
3
Discussion span
→
People posting
3
Likes on archived posts
3
Posts by staff, officers and moderators
1
Authority score
70 / 100
Historical score
28 / 100
Story score
25 / 100
Engagement score
43 / 100

Most-liked replies

DieselBlade [1701621] Wiki Contributor

Hi,

 

Is there an easy way to check what level an API key is?

 

Our faction pool API keys so I can run a faction competition script.

 

I check if the API key is valid and if the required level by retrieving Torn > User and then Faction (ID) > Attacks

 

Is there an easier way? It would be handy if there was a quick call which would return with "public" or "limited" etc

DeKleineKobini [2114440] Committee Committee

Since you mentioned faction > attacks, the answer is not as easy. Most faction calls require a permission "Faction API Access". No call exists to properly check for that. So you would need to do a call that needs that permission and if it works you know that the have that permission.