<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[API Token and Websocket requests]]></title><description><![CDATA[<p>I'm currently hosting Grafana stats for screeps players on screepspl.us, but one of the largest limitations currently is that each user needs to run the agent on their own PC. <br>It is done this way so that credentials remain in the user's control.<br>Is there plans for a token system where a user could supply a persistent token or use oauth to give access to the API? (Presumably with scope limited to wherever the user chooses (Memory.stats for my setup))<br>The API does use a token currently, but as far as I can tell, it expires upon use, thus requiring saving the new token from the response or re authenticating. <br><br>Also, thought, the websocket protocol has a watch system for memory, but on paths that are objects, it only shows "[object Object]" unless serialized in user code. It would be nice to have the ability to see a JSON representation of the data instead. </p>]]></description><link>http://screeps.com/forum/topic/600/api-token-and-websocket-requests</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 12:22:55 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/600.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Oct 2016 19:28:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to API Token and Websocket requests on Invalid Date]]></title><description><![CDATA[<p>I'm currently hosting Grafana stats for screeps players on screepspl.us, but one of the largest limitations currently is that each user needs to run the agent on their own PC. <br>It is done this way so that credentials remain in the user's control.<br>Is there plans for a token system where a user could supply a persistent token or use oauth to give access to the API? (Presumably with scope limited to wherever the user chooses (Memory.stats for my setup))<br>The API does use a token currently, but as far as I can tell, it expires upon use, thus requiring saving the new token from the response or re authenticating. <br><br>Also, thought, the websocket protocol has a watch system for memory, but on paths that are objects, it only shows "[object Object]" unless serialized in user code. It would be nice to have the ability to see a JSON representation of the data instead. </p>]]></description><link>http://screeps.com/forum/post/2925</link><guid isPermaLink="true">http://screeps.com/forum/post/2925</guid><dc:creator><![CDATA[ags131]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to API Token and Websocket requests on Invalid Date]]></title><description><![CDATA[<p>Yes please! I know the API is a somewhat "unofficial" thing but you guys seem to like what we keep building with it, and I think being able to do things like have console output without actually running the rest of the client can help reduce load.</p>
<p>The biggest hurdle right now to making some really cool stuff is the lack of an API key system. </p>
<p>For the first version a permissions system isn't required- the API key should just not be able to create new keys or change passwords.</p>]]></description><link>http://screeps.com/forum/post/2926</link><guid isPermaLink="true">http://screeps.com/forum/post/2926</guid><dc:creator><![CDATA[tedivm]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to API Token and Websocket requests on Invalid Date]]></title><description><![CDATA[<p>Agreed. I'd take an initial version with revocable API keys for read-only access that also store date/time of last access and last access IP address please.</p>
<p>Later, API keys that can be restricted to just what you want (e.g., Memory, console, code uploads or downloads, etc.).</p>]]></description><link>http://screeps.com/forum/post/2927</link><guid isPermaLink="true">http://screeps.com/forum/post/2927</guid><dc:creator><![CDATA[Admiral]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to API Token and Websocket requests on Invalid Date]]></title><description><![CDATA[<p>Yes, we indeed have API keys feature in our TODO list (see <a href="/hc/en-us/community/posts/205144109-Creating-a-standalone-client" target="_blank" rel="nofollow noreferrer">here</a> and <a href="/hc/en-us/community/posts/206535629-Pushing-code-with-API-key-instead-of-password" target="_blank" rel="nofollow noreferrer">here</a>), but there are a lot of other important tasks in it at the moment. We probably should add this to our public roadmap anyway.</p>]]></description><link>http://screeps.com/forum/post/2928</link><guid isPermaLink="true">http://screeps.com/forum/post/2928</guid><dc:creator><![CDATA[artch]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>