To use an API key in the Swagger interface:
Log in as an admin and select the appropriate org, if required.
Navigate to Admin > Swagger Docs.
Click the resource from the list to open the Swagger interface in a new tab.
Expand a supported endpoint.
Enter the API key in the x-api-key field to authenticate the call.
- Optional: If impersonation is enabled, enter the ID of the user who will be impersonated. Impersonation can only be enabled by a member of Resolver Support. See Impersonation with an API Key for more details.
The POST /data/file/file endpoint in the file service
- Complete the remainder of the fields as required.
Example
curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' --header 'x-api-key: YOUR_API_KEY' --header 'impersonate-user-id: IMPERSONATED_USER_ID' 'https://YOUR_ENVIRONMENT.resolver.com/data/file/file'