API key
To call any endpoint, you must first generate an access token using your Symmetry-provided API key. Include this token as a Bearer token in the Authorization header of your request. Your API key is provided by Symmetry’s Client Success Team during onboarding and unique to your company. If you have any questions or are concerned your API key was compromised, please reach out to our team to request a new key.Sample header
Below is a sample HTTP header:Sample Request Header
Example request
Below is a sample cURL to the authorization endpoint to request a token:cURL
Example response
Invalid response
An invalid API key will produce the following response:Embedded experience access
There are three places in the Symmetry I-9 application that require one-time, session-level access for embedded experiences:- Employee embedded experience
- Employer administrator embedded experience
- E-Verify settings embedded experience
The two
generateToken endpoints return a single embeddedUri with the token already embedded as a query parameter, so one URL both signs the user in and opens their session:
authenticateUri to sign the administrator in, and embeddedUri for the page they land on. Open them in that order, or the page will not load. See Configure E-Verify for that flow.
The resulting token has a 30 minute expiration and will timeout after 1 hour of inactivity. Unlike API keys, you may request and use additional access tokens while other access tokens are still active. Therefore, it is not necessary to store the access token in the database if you prefer to request a token just in time before a system request.
Example request
Below is a sample cURL to establish an employee’s I-9 session:Deep links into the administrator experience
The administrator endpoint above opens the embedded experience at its default page. Three additional endpoints generate access that lands an administrator on a specific page instead, which is useful when you want to send someone straight to the task they need to complete. Each is scoped to an administrator and returnsauthenticateUri to sign the user in, plus embeddedUri for the page they arrive on.
API domain
There is one API domain (apiDomain) for all Symmetry I-9 endpoints:
- Production:
https://api.symmetry.com/i9
API versioning
Currently, Symmetry I-9 is on version 1 (v1), and this version is included in the endpoint URL. Symmetry’s API versions are always backwards compatible.
