@extends('layouts.app') @section('title', 'API keys | '.$org->display_name.' | healthcareers.app') @section('robots', 'noindex, nofollow') @section('content')
Job Sync

API keys

{{ $org->display_name }} · My organization@if (\Illuminate\Support\Facades\Route::has('organization.sync')) · Job Sync@endif · API docs

@include('partials.errors') @if ($plain)

Your new key: {{ $newKey->name }}

Copy it now. You won't see it again. We keep only a scrambled copy, so we can't show it later. If you lose it, revoke it and create another.
{{ $plain }}

Send it with every request: Authorization: Bearer {{ $newKey->prefix }}…. Keep it in your system's secret settings, not in code or email.

@endif

What the API does

Your own system (an applicant tracking system, HR system or a script) sends your jobs to healthcareers.app as they open, change and close. Each job goes up as {{ $org->display_name }}'s own post, in your words, just like the other Job Sync connections.

Read the API docs

@if ($source)

API connection: {{ $source->statusLabel() }}@if ($source->status_reason) ({{ $source->status_reason }})@endif · {{ (int) $source->jobs_found }} open {{ (int) $source->jobs_found === 1 ? 'job' : 'jobs' }} sent{{ $source->last_success_at ? ' · last job received '.$source->last_success_at->diffForHumans() : '' }}

@endif

Keys

@if ($keys->isEmpty())

No keys yet.

@else
@foreach ($keys as $k) @endforeach
NameKeyCreatedLast used
{{ $k->name }}@if ($k->created_by)
by {{ $k->created_by }}@endif
{{ $k->prefix }}… {{ $k->created_at?->format('M j, Y') }} {{ $k->last_used_at ? $k->last_used_at->diffForHumans() : 'Never' }}
@csrf
@endif @if ($revokedCount)

{{ $revokedCount }} revoked {{ $revokedCount === 1 ? 'key' : 'keys' }} not shown.

@endif @if ($blocker)
{{ $blocker }}

Keys you already have stop working while this is the case.

@else
@csrf
A name so you can tell your keys apart, like the system that will use it. Use one key per system: you can revoke one without stopping the others.
@endif
@endsection @if ($plain) @push('scripts') @endpush @endif