REST API
The Specify API lets you extend Specify functionalities beyond what we provide out of the box.
Last updated
Was this helpful?
The Specify API lets you extend Specify functionalities beyond what we provide out of the box.
Last updated
Was this helpful?
Specify provides the following endpoint to help you get design tokens and assets from a Specify repository.
https://api.specifyapp.com/v2/{workspace}/repository/{repository}/execute-rule
POST
https://api.specifyapp.com/v2/{workspace}/repository/{repository}/execute-rule
Get design tokens and assets from a Specify repository. You can only execute a single rule with this endpoint.
workspace*
String
The name of your organization in Specify. For instance, in this URL https://specifyapp.com/ @specifyapp/Seeds
the workspace is "@specifyapp".
name
String
The name of the Specify repository containing the design data you're requesting. For instance, in this URL https://specifyapp.com / @specifyapp/Seeds
the repository is "Seeds".
parsers*
Object or Array
Can contain an object or an array of objects. Each object corresponds to a specific parser.
name*
The name of your rule
Once you have your personal access token, you can pass it within the Authorization
header of your request.
Here's a simple example to get tokens in JSON from a repository called all-design-data
in the @acme-inc
workspace: