Retrieve a Directory Sync
GET {{cryptr_service_url}}/api/v2/org/:org_domain/directory-sync
Fetch a Directory Sync by its organization owner and environment (production, sandbox...).
Note: When you fetch a Directory Sync, the environment of your API key determines where your Directory Sync is stored. For example, your Directory Sync in the sandbox environment is fetched only if this resource is stored in sandbox. You cannot fetch a Directory Sync from the Production environment with this API key; you need an API key dedicated to the Production environment.
RETURNS
Returns the Directory Sync for a valid organization/environment pair. If the Directory Sync has been deleted, a NoResult response is returned.
RESPONSES
status: OK
{"__type__":"DirectorySync","active":false,"auth_secret_token":{"hint":"This value is only displayed at creation and in the Onboarding of your customer.","provider_key":null,"value":"hidden"},"environment":{"name":"sandbox","status":"up"},"id":"directory-sync_2jgWFqVZhNIZhA6znP9vzqEx2Uq","inserted_at":"2024-07-24T08:18:19","organization":{"__type__":"Organization","allowed_email_domains":["cpromo.com"],"color":"sky-400","domain":"cpromo","environments":[{"name":"sandbox","status":"up"},{"name":"production","status":"down"}],"icon_logo_url":null,"inline_logo_url":null,"inserted_at":"2024-07-24T07:26:37","locale":"en-US","name":"Cpromo","status":{"errors":[],"estimated_time_to_complete_in_seconds":null,"progress_in_percentage":null,"state":"terminated"},"timezone":null,"updated_at":"2024-07-24T07:26:45"},"provider_type":null,"updated_at":"2024-07-24T08:48:05"}