
More API
Bunch of new APIs we're launching for content, plus some conversation about our prioritization for new APIs (TLDR; ask us if you need APIs).
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I go first um I'm going to demo some of the API work I've been doing um easier to demo on Postman uh no free ads but I would rather do it here than than terminal um so just to start off I'll show the change I made to the query run API so I've set up a query that um references the user email attribute here and we now pass in an optional user ID to run the query as that individual so we'll see here we'll see Cory plus Corey al.co let's change that up use a different user just referencing that user attribute we get a different email um so this is an optional Pam right now if you don't pass in user ID we're just going
to use um the ID of the user that actually created the API token next um I've been working on some of the readon endpoints for Content um this get documents endpoint is live now so let me just query without any pams you'll see we get some records some this is just kind of like random uh seated folders documents that I made but you'll see some of them are nested within folders um we can query for things like labels for a Creator ID maybe um sort field sort Direction this a paginated endpoint um so you can pass in things like page size cursor and we'll give you that information back um next the folders in point so uh this one's not released but it's going to
be soon so just to show that off without any prams you'll see again that page information at the top the folders include information about how many documents within them how many people have favored them um the name the path the scope so let's query let's say for path folder two we'll get output for name path scope by default we're always querying for scope of organization but we can also query for restricted but you'll see um we're going to require you send in owner ID if your scope is restricted so you know who who we actually rest restricting uh content for um that's about it so next step is to create just a SL content endpoint return all this information in one and uh go from
there Cory what's the current process for how you're sort of prioritizing different apis and sort of going through and and building stuff that is a good question um starting with just these read only end points right now for Content um I think next after that I'm going to Def arel for a better answer yeah uh it's a bit of demand oriented of like the ones that we have heard I think we have like categories of apis we know we want to open up uh the ones that we're prioritizing are the ones that we have like uh actual use cases to solve and demand so we started with content because there's some very clear uh embed use cases of like wanting to generate your own sidebars
of navigation uh the next one that we're probably going to do is dynamic connection environments because or being able to programmatically create con environments because that supports like embedding of like Dynamic connection swapping so if you have so folks should essentially ask you if they want apis yes again we have a we have a list there's a backlog but uh and Conrad is also doing those model creation ones because we had some real needs for uh programmatic model generation so talk to me I have a couple quick questions Corey uh one specific to your demo you added the like run as user like the the user ID to the Run API so I'm curious one if there's any um like permissioning on the API key
that needs to happen for that or the ideas is that it's essentially like running as like an impersonation user and in order to generate an API key you need to be an admin or something along those that's correct yeah we're sticking with the the org level admin API key uh more like an impersonation step here yeah and does it does it then get recorded as as though it were an impersonation I let me come back to you on that I actually um am not sure there cool okay I think so that that was my first question Awesome by the way and then um the other thing that I wanted to ask was more of like a you know strategy around completing you know getting more
comprehensive apis like uh you know as Ariel mentioned I started to do a little bit of work around this I need to actually push it over the line um but I'm I'm curious like one like are there some best practices or patterns that you're starting to develop that we can then make sure that that we're following and and that way we can distribute the work of actually getting a more comprehensive set of apis like what's the what's the approach to that are we thinking that like product feature or owners will kind of do the work for their product feature area uh and that there will be some sort of like framework that that work gets done within yeah that's exactly right um my process right
now is just sort of bang out a few of these end points um start to establish some of our best practices thing we're things we're going to strictly adhere to um and then write write up some sort of documentation for other people to follow um or give them good examples to follow um you know so we can get these out the door awesome thanks yeah this is awesome one other question too are we are we gonna do sdks or or uh and SDK on on these two yeah that's the Hope um I need to figure out who to talk to you there cool sounds awesome thank you