Reading & writing data via the API
Last updated
Last updated
These endpoints are highly beta and subject to change
For fetching info about a specific glif, user, or a specific glifRun.
Paginate using ?page=
when applicable. You can also increase the # of results per page using e.g. ?limit=50
, currently defaulting to 20 and capped at 100
Fetch a specific glif: GET
Includes full glif-graph JSON in the data
field
Fetch all public glifs: GET
Fetch featured glifs on homepage: GET
Fetch user's glifs by username: GET
Fetch user's glifs by user ID: GET
To get the full glif-graph JSON in the data
field, append ?includes=spells.data
Fetch a specific run: GET
Fetch all public runs by a specific user:
Here's a curl
example which creates an empty, unpublished (draft) glif:
Please note that formatting complex JSON inside a shell command like this is a huge pain in the butt and is not recommended for serious development :)
Here's an example response on success for that call:
Note the glif id, clzs7eoan0003n1xgod8grhaj
. Also note that this glif is also unpublished and so it is not accessible to any user except you! You can publish it via the website, or by specifying a "publishedAt" date in your POST request.
You can then run it this glif:
To view raw glif data, you can fork or build something on glif.app and use the "Debug" button bottom-left.
Alternately, it's present in all published glifs via the API, e.g., in order of increasing complexity:
Fetch info about a user, via either ID or username:
You can also use ?id=
param
Like the 'list of glifs' above, you can fetch the full glif-graph JSON in these list queries by appending ?includes=spells.data
Fetch all public runs for a specific glif: GET (?spellId=
also works)
by username: GET
by userId: GET
Currently in private testing; if you're messing with this!
Here's a curl example that includes one text input and an LLM call (GPTBlock) copied from this glif.
Simple text generator:
Audio input with CanvasBlock formatting:
ComfyUI-based image transformer:
Fetch info about the logged-in user (and thus test that your API token is working and you are logged-in): GET
GET
GET
To get glifs from a specific sphere (AKA folder or collection): GET
Public spheres are listed on
Please and post in the #api-support
channel if you have any questions or need help with the API. We'd love to hear from you!
Alternately you can , but those will get slower replies.